diff options
| author | Andi Kleen <ak@suse.de> | 2005-07-29 00:15:30 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-29 00:45:58 -0400 |
| commit | a940199f206dcf51c65fae27e2ce412f2c5a2b22 (patch) | |
| tree | ada838ac347214d20fcb6003cba1c4938dc7ebae /include | |
| parent | de04f3220b9789cc40fd6b1d151dfa0a7e3b03b9 (diff) | |
[PATCH] x86_64: Some cleanup in setup64.c
Minor cleanup.
Move things into their include files, remove obsolete includes, fix
indentation, remove obsolete special cases etc.
I also added the per cpu section to asm-generic/sections.h and fixed
init/main.c to use it.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/sections.h | 1 | ||||
| -rw-r--r-- | include/asm-x86_64/desc.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h index 195ccdc069..450eae22c3 100644 --- a/include/asm-generic/sections.h +++ b/include/asm-generic/sections.h | |||
| @@ -11,5 +11,6 @@ extern char _sinittext[], _einittext[]; | |||
| 11 | extern char _sextratext[] __attribute__((weak)); | 11 | extern char _sextratext[] __attribute__((weak)); |
| 12 | extern char _eextratext[] __attribute__((weak)); | 12 | extern char _eextratext[] __attribute__((weak)); |
| 13 | extern char _end[]; | 13 | extern char _end[]; |
| 14 | extern char __per_cpu_start[], __per_cpu_end[]; | ||
| 14 | 15 | ||
| 15 | #endif /* _ASM_GENERIC_SECTIONS_H_ */ | 16 | #endif /* _ASM_GENERIC_SECTIONS_H_ */ |
diff --git a/include/asm-x86_64/desc.h b/include/asm-x86_64/desc.h index 6aefb9c028..c89b58bebe 100644 --- a/include/asm-x86_64/desc.h +++ b/include/asm-x86_64/desc.h | |||
| @@ -75,6 +75,7 @@ struct desc_ptr { | |||
| 75 | */ | 75 | */ |
| 76 | extern struct desc_struct default_ldt[]; | 76 | extern struct desc_struct default_ldt[]; |
| 77 | extern struct gate_struct idt_table[]; | 77 | extern struct gate_struct idt_table[]; |
| 78 | extern struct desc_ptr cpu_gdt_descr[]; | ||
| 78 | 79 | ||
| 79 | static inline void _set_gate(void *adr, unsigned type, unsigned long func, unsigned dpl, unsigned ist) | 80 | static inline void _set_gate(void *adr, unsigned type, unsigned long func, unsigned dpl, unsigned ist) |
| 80 | { | 81 | { |
