diff options
author | Alexander van Heukelum <heukelum@mailshack.com> | 2008-07-01 19:30:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 02:15:36 -0400 |
commit | badc76527f7e29302f0bde3d366c59101fb2ab87 (patch) | |
tree | a31ec2550a7e6a99b58891ee44de1d59cfe3d985 /arch/x86/kernel/traps_32.c | |
parent | a8c1be9d2e78d8608892c86791837acf12da4bf6 (diff) |
x86: traps_xx: shuffle headers and globals
Reorder headers and collect globals in traps_32.c and traps_64.c
Code size and data size are unaffected by the changes. Code
itself is changed due to different ordering of data and bss.
The bss segment changed size due to a change in the packing
of the variables.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/traps_32.c')
-rw-r--r-- | arch/x86/kernel/traps_32.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c index 92439698e489..5339af459a38 100644 --- a/arch/x86/kernel/traps_32.c +++ b/arch/x86/kernel/traps_32.c | |||
@@ -61,8 +61,6 @@ | |||
61 | 61 | ||
62 | #include "mach_traps.h" | 62 | #include "mach_traps.h" |
63 | 63 | ||
64 | int panic_on_unrecovered_nmi; | ||
65 | |||
66 | DECLARE_BITMAP(used_vectors, NR_VECTORS); | 64 | DECLARE_BITMAP(used_vectors, NR_VECTORS); |
67 | EXPORT_SYMBOL_GPL(used_vectors); | 65 | EXPORT_SYMBOL_GPL(used_vectors); |
68 | 66 | ||
@@ -99,8 +97,11 @@ asmlinkage void alignment_check(void); | |||
99 | asmlinkage void spurious_interrupt_bug(void); | 97 | asmlinkage void spurious_interrupt_bug(void); |
100 | asmlinkage void machine_check(void); | 98 | asmlinkage void machine_check(void); |
101 | 99 | ||
100 | int panic_on_unrecovered_nmi; | ||
102 | int kstack_depth_to_print = 24; | 101 | int kstack_depth_to_print = 24; |
103 | static unsigned int code_bytes = 64; | 102 | static unsigned int code_bytes = 64; |
103 | static int ignore_nmis; | ||
104 | static int die_counter; | ||
104 | 105 | ||
105 | void printk_address(unsigned long address, int reliable) | 106 | void printk_address(unsigned long address, int reliable) |
106 | { | 107 | { |
@@ -382,8 +383,6 @@ int is_valid_bugaddr(unsigned long ip) | |||
382 | return ud2 == 0x0b0f; | 383 | return ud2 == 0x0b0f; |
383 | } | 384 | } |
384 | 385 | ||
385 | static int die_counter; | ||
386 | |||
387 | int __kprobes __die(const char *str, struct pt_regs *regs, long err) | 386 | int __kprobes __die(const char *str, struct pt_regs *regs, long err) |
388 | { | 387 | { |
389 | unsigned short ss; | 388 | unsigned short ss; |
@@ -829,8 +828,6 @@ static notrace __kprobes void default_do_nmi(struct pt_regs *regs) | |||
829 | reassert_nmi(); | 828 | reassert_nmi(); |
830 | } | 829 | } |
831 | 830 | ||
832 | static int ignore_nmis; | ||
833 | |||
834 | notrace __kprobes void do_nmi(struct pt_regs *regs, long error_code) | 831 | notrace __kprobes void do_nmi(struct pt_regs *regs, long error_code) |
835 | { | 832 | { |
836 | int cpu; | 833 | int cpu; |