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/doublefault_32.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/doublefault_32.c')
-rw-r--r-- | arch/x86/kernel/doublefault_32.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/x86/kernel/doublefault_32.c b/arch/x86/kernel/doublefault_32.c index 40978af630e7..cc19a3ea403a 100644 --- a/arch/x86/kernel/doublefault_32.c +++ b/arch/x86/kernel/doublefault_32.c | |||
@@ -35,12 +35,13 @@ static void doublefault_fn(void) | |||
35 | if (ptr_ok(tss)) { | 35 | if (ptr_ok(tss)) { |
36 | struct i386_hw_tss *t = (struct i386_hw_tss *)tss; | 36 | struct i386_hw_tss *t = (struct i386_hw_tss *)tss; |
37 | 37 | ||
38 | printk(KERN_EMERG "eip = %08lx, esp = %08lx\n", t->eip, t->esp); | 38 | printk(KERN_EMERG "eip = %08lx, esp = %08lx\n", |
39 | t->ip, t->sp); | ||
39 | 40 | ||
40 | printk(KERN_EMERG "eax = %08lx, ebx = %08lx, ecx = %08lx, edx = %08lx\n", | 41 | printk(KERN_EMERG "eax = %08lx, ebx = %08lx, ecx = %08lx, edx = %08lx\n", |
41 | t->eax, t->ebx, t->ecx, t->edx); | 42 | t->ax, t->bx, t->cx, t->dx); |
42 | printk(KERN_EMERG "esi = %08lx, edi = %08lx\n", | 43 | printk(KERN_EMERG "esi = %08lx, edi = %08lx\n", |
43 | t->esi, t->edi); | 44 | t->si, t->di); |
44 | } | 45 | } |
45 | } | 46 | } |
46 | 47 | ||
@@ -50,15 +51,15 @@ static void doublefault_fn(void) | |||
50 | 51 | ||
51 | struct tss_struct doublefault_tss __cacheline_aligned = { | 52 | struct tss_struct doublefault_tss __cacheline_aligned = { |
52 | .x86_tss = { | 53 | .x86_tss = { |
53 | .esp0 = STACK_START, | 54 | .sp0 = STACK_START, |
54 | .ss0 = __KERNEL_DS, | 55 | .ss0 = __KERNEL_DS, |
55 | .ldt = 0, | 56 | .ldt = 0, |
56 | .io_bitmap_base = INVALID_IO_BITMAP_OFFSET, | 57 | .io_bitmap_base = INVALID_IO_BITMAP_OFFSET, |
57 | 58 | ||
58 | .eip = (unsigned long) doublefault_fn, | 59 | .ip = (unsigned long) doublefault_fn, |
59 | /* 0x2 bit is always set */ | 60 | /* 0x2 bit is always set */ |
60 | .eflags = X86_EFLAGS_SF | 0x2, | 61 | .flags = X86_EFLAGS_SF | 0x2, |
61 | .esp = STACK_START, | 62 | .sp = STACK_START, |
62 | .es = __USER_DS, | 63 | .es = __USER_DS, |
63 | .cs = __KERNEL_CS, | 64 | .cs = __KERNEL_CS, |
64 | .ss = __KERNEL_DS, | 65 | .ss = __KERNEL_DS, |