diff options
author | Ravikiran G Thirumalai <kiran@scalex86.org> | 2006-01-11 16:45:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:04:59 -0500 |
commit | df79efde82952edc653fa6eb1338a82b87aa0585 (patch) | |
tree | 67abb221cf834c3a7766c406aae1e55aa31b6bcf /arch/x86_64/kernel/traps.c | |
parent | 05b3cbd8bb98736387df8a2e1efe311b1fb4d2ad (diff) |
[PATCH] x86_64: Node local pda take 2 -- cpu_pda preparation
Helper patch to change cpu_pda users to use macros to access cpu_pda
instead of the cpu_pda[] array.
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Signed-off-by: Shai Fultheim <shai@scalex86.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/traps.c')
-rw-r--r-- | arch/x86_64/kernel/traps.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 8d21d87b0d77..0827b141c05e 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c | |||
@@ -70,7 +70,6 @@ asmlinkage void reserved(void); | |||
70 | asmlinkage void alignment_check(void); | 70 | asmlinkage void alignment_check(void); |
71 | asmlinkage void machine_check(void); | 71 | asmlinkage void machine_check(void); |
72 | asmlinkage void spurious_interrupt_bug(void); | 72 | asmlinkage void spurious_interrupt_bug(void); |
73 | asmlinkage void call_debug(void); | ||
74 | 73 | ||
75 | struct notifier_block *die_chain; | 74 | struct notifier_block *die_chain; |
76 | static DEFINE_SPINLOCK(die_notifier_lock); | 75 | static DEFINE_SPINLOCK(die_notifier_lock); |
@@ -139,7 +138,7 @@ static unsigned long *in_exception_stack(unsigned cpu, unsigned long stack, | |||
139 | switch (k + 1) { | 138 | switch (k + 1) { |
140 | #if DEBUG_STKSZ > EXCEPTION_STKSZ | 139 | #if DEBUG_STKSZ > EXCEPTION_STKSZ |
141 | case DEBUG_STACK: | 140 | case DEBUG_STACK: |
142 | end = cpu_pda[cpu].debugstack + DEBUG_STKSZ; | 141 | end = cpu_pda(cpu)->debugstack + DEBUG_STKSZ; |
143 | break; | 142 | break; |
144 | #endif | 143 | #endif |
145 | default: | 144 | default: |
@@ -186,7 +185,7 @@ void show_trace(unsigned long *stack) | |||
186 | { | 185 | { |
187 | unsigned long addr; | 186 | unsigned long addr; |
188 | const unsigned cpu = safe_smp_processor_id(); | 187 | const unsigned cpu = safe_smp_processor_id(); |
189 | unsigned long *irqstack_end = (unsigned long *)cpu_pda[cpu].irqstackptr; | 188 | unsigned long *irqstack_end = (unsigned long *)cpu_pda(cpu)->irqstackptr; |
190 | int i; | 189 | int i; |
191 | unsigned used = 0; | 190 | unsigned used = 0; |
192 | 191 | ||
@@ -254,8 +253,8 @@ void show_stack(struct task_struct *tsk, unsigned long * rsp) | |||
254 | unsigned long *stack; | 253 | unsigned long *stack; |
255 | int i; | 254 | int i; |
256 | const int cpu = safe_smp_processor_id(); | 255 | const int cpu = safe_smp_processor_id(); |
257 | unsigned long *irqstack_end = (unsigned long *) (cpu_pda[cpu].irqstackptr); | 256 | unsigned long *irqstack_end = (unsigned long *) (cpu_pda(cpu)->irqstackptr); |
258 | unsigned long *irqstack = (unsigned long *) (cpu_pda[cpu].irqstackptr - IRQSTACKSIZE); | 257 | unsigned long *irqstack = (unsigned long *) (cpu_pda(cpu)->irqstackptr - IRQSTACKSIZE); |
259 | 258 | ||
260 | // debugging aid: "show_stack(NULL, NULL);" prints the | 259 | // debugging aid: "show_stack(NULL, NULL);" prints the |
261 | // back trace for this cpu. | 260 | // back trace for this cpu. |
@@ -303,7 +302,7 @@ void show_registers(struct pt_regs *regs) | |||
303 | int in_kernel = !user_mode(regs); | 302 | int in_kernel = !user_mode(regs); |
304 | unsigned long rsp; | 303 | unsigned long rsp; |
305 | const int cpu = safe_smp_processor_id(); | 304 | const int cpu = safe_smp_processor_id(); |
306 | struct task_struct *cur = cpu_pda[cpu].pcurrent; | 305 | struct task_struct *cur = cpu_pda(cpu)->pcurrent; |
307 | 306 | ||
308 | rsp = regs->rsp; | 307 | rsp = regs->rsp; |
309 | 308 | ||