Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d6e4bed6
Commit
d6e4bed6
authored
Mar 06, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix percpu patch breakage
parent
ddffeb01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
include/linux/compiler.h
include/linux/compiler.h
+1
-2
init/main.c
init/main.c
+3
-0
No files found.
include/linux/compiler.h
View file @
d6e4bed6
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
/* This macro obfuscates arithmetic on a variable address so that gcc
/* This macro obfuscates arithmetic on a variable address so that gcc
shouldn't recognize the original var, and make assumptions about it */
shouldn't recognize the original var, and make assumptions about it */
strcpy
(
s
,
"xxx"
+
X
)
=>
memcpy
(
s
,
"xxx"
+
X
,
4
-
X
)
*/
#define RELOC_HIDE(var, off) \
#define RELOC_HIDE(var, off) \
({ __typeof__(&(var)) __ptr; \
({ __typeof__(&(var)) __ptr; \
__asm__ ("" : "=g"(__ptr) : "0"((void *)&(var) + (off))); \
__asm__ ("" : "=g"(__ptr) : "0"((void *)&(var) + (off))); \
...
...
init/main.c
View file @
d6e4bed6
...
@@ -287,6 +287,9 @@ static void __init setup_per_cpu_areas(void)
...
@@ -287,6 +287,9 @@ static void __init setup_per_cpu_areas(void)
/* Copy section for each CPU (we discard the original) */
/* Copy section for each CPU (we discard the original) */
size
=
ALIGN
(
__per_cpu_end
-
__per_cpu_start
,
SMP_CACHE_BYTES
);
size
=
ALIGN
(
__per_cpu_end
-
__per_cpu_start
,
SMP_CACHE_BYTES
);
if
(
!
size
)
return
;
ptr
=
alloc_bootmem
(
size
*
NR_CPUS
);
ptr
=
alloc_bootmem
(
size
*
NR_CPUS
);
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
,
ptr
+=
size
)
{
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
,
ptr
+=
size
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment