diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-08 15:09:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:45 -0400 |
commit | 92bc2056855b3250bf6fd5849f05f88d85839efa (patch) | |
tree | 2615f7f8e1168a59085a8b87a2aaf9e1e1e49084 | |
parent | 45de70791165ce7eac5232ed5a7c31152567f4da (diff) |
x86: change most X86_32 pt_regs members to unsigned long
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/process_32.c | 5 | ||||
-rw-r--r-- | arch/x86/kernel/signal_32.c | 4 | ||||
-rw-r--r-- | include/asm-x86/ptrace.h | 28 |
3 files changed, 18 insertions, 19 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index 43930e73f657..2cd89b8a7050 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c | |||
@@ -332,7 +332,7 @@ void __show_registers(struct pt_regs *regs, int all) | |||
332 | init_utsname()->version); | 332 | init_utsname()->version); |
333 | 333 | ||
334 | printk("EIP: %04x:[<%08lx>] EFLAGS: %08lx CPU: %d\n", | 334 | printk("EIP: %04x:[<%08lx>] EFLAGS: %08lx CPU: %d\n", |
335 | 0xffff & regs->cs, regs->ip, regs->flags, | 335 | (u16)regs->cs, regs->ip, regs->flags, |
336 | smp_processor_id()); | 336 | smp_processor_id()); |
337 | print_symbol("EIP is at %s\n", regs->ip); | 337 | print_symbol("EIP is at %s\n", regs->ip); |
338 | 338 | ||
@@ -341,8 +341,7 @@ void __show_registers(struct pt_regs *regs, int all) | |||
341 | printk("ESI: %08lx EDI: %08lx EBP: %08lx ESP: %08lx\n", | 341 | printk("ESI: %08lx EDI: %08lx EBP: %08lx ESP: %08lx\n", |
342 | regs->si, regs->di, regs->bp, sp); | 342 | regs->si, regs->di, regs->bp, sp); |
343 | printk(" DS: %04x ES: %04x FS: %04x GS: %04x SS: %04x\n", | 343 | printk(" DS: %04x ES: %04x FS: %04x GS: %04x SS: %04x\n", |
344 | regs->ds & 0xffff, regs->es & 0xffff, | 344 | (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, ss); |
345 | regs->fs & 0xffff, gs, ss); | ||
346 | 345 | ||
347 | if (!all) | 346 | if (!all) |
348 | return; | 347 | return; |
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index 011c62fa563c..34fc0416b135 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c | |||
@@ -393,8 +393,8 @@ static int setup_frame(int sig, struct k_sigaction *ka, | |||
393 | regs->sp = (unsigned long) frame; | 393 | regs->sp = (unsigned long) frame; |
394 | regs->ip = (unsigned long) ka->sa.sa_handler; | 394 | regs->ip = (unsigned long) ka->sa.sa_handler; |
395 | regs->ax = (unsigned long) sig; | 395 | regs->ax = (unsigned long) sig; |
396 | regs->dx = (unsigned long) 0; | 396 | regs->dx = 0; |
397 | regs->cx = (unsigned long) 0; | 397 | regs->cx = 0; |
398 | 398 | ||
399 | regs->ds = __USER_DS; | 399 | regs->ds = __USER_DS; |
400 | regs->es = __USER_DS; | 400 | regs->es = __USER_DS; |
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index d9e04b46a440..708337a36727 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -36,23 +36,23 @@ struct pt_regs { | |||
36 | #else /* __KERNEL__ */ | 36 | #else /* __KERNEL__ */ |
37 | 37 | ||
38 | struct pt_regs { | 38 | struct pt_regs { |
39 | long bx; | 39 | unsigned long bx; |
40 | long cx; | 40 | unsigned long cx; |
41 | long dx; | 41 | unsigned long dx; |
42 | long si; | 42 | unsigned long si; |
43 | long di; | 43 | unsigned long di; |
44 | long bp; | 44 | unsigned long bp; |
45 | long ax; | 45 | long ax; |
46 | int ds; | 46 | unsigned long ds; |
47 | int es; | 47 | unsigned long es; |
48 | int fs; | 48 | unsigned long fs; |
49 | /* int gs; */ | 49 | /* int gs; */ |
50 | long orig_ax; | 50 | long orig_ax; |
51 | long ip; | 51 | unsigned long ip; |
52 | int cs; | 52 | unsigned long cs; |
53 | long flags; | 53 | unsigned long flags; |
54 | long sp; | 54 | unsigned long sp; |
55 | int ss; | 55 | unsigned long ss; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | #include <asm/vm86.h> | 58 | #include <asm/vm86.h> |