diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-01-30 07:31:02 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:02 -0500 |
commit | faca62273b602ab482fb7d3d940dbf41ef08b00e (patch) | |
tree | 913fb1c565a2b719b00ae4b745c38cc9b0ebf279 /arch/x86/kernel/traps_64.c | |
parent | 25149b62d3e6a3e737af39bd4a0b4e97de0811b7 (diff) |
x86: use generic register name in the thread and tss structures
This changes size-specific register names (eip/rip, esp/rsp, etc.) to
generic names in the thread and tss structures.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/traps_64.c')
-rw-r--r-- | arch/x86/kernel/traps_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/traps_64.c b/arch/x86/kernel/traps_64.c index f7fecf9d47c3..965f2cc3a013 100644 --- a/arch/x86/kernel/traps_64.c +++ b/arch/x86/kernel/traps_64.c | |||
@@ -230,7 +230,7 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs, | |||
230 | unsigned long dummy; | 230 | unsigned long dummy; |
231 | stack = &dummy; | 231 | stack = &dummy; |
232 | if (tsk && tsk != current) | 232 | if (tsk && tsk != current) |
233 | stack = (unsigned long *)tsk->thread.rsp; | 233 | stack = (unsigned long *)tsk->thread.sp; |
234 | } | 234 | } |
235 | 235 | ||
236 | /* | 236 | /* |
@@ -366,7 +366,7 @@ _show_stack(struct task_struct *tsk, struct pt_regs *regs, unsigned long *sp) | |||
366 | 366 | ||
367 | if (sp == NULL) { | 367 | if (sp == NULL) { |
368 | if (tsk) | 368 | if (tsk) |
369 | sp = (unsigned long *)tsk->thread.rsp; | 369 | sp = (unsigned long *)tsk->thread.sp; |
370 | else | 370 | else |
371 | sp = (unsigned long *)&sp; | 371 | sp = (unsigned long *)&sp; |
372 | } | 372 | } |