diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-08 15:09:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:45 -0400 |
commit | 9902a702c76f904be0057f8647dda9d6f89d4847 (patch) | |
tree | e5138b091cee44c834b1f65c71811240bd54497c /include | |
parent | 92bc2056855b3250bf6fd5849f05f88d85839efa (diff) |
x86: make X86_32 pt_regs members 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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/ptrace.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index 708337a36727..bc442461ac64 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -42,12 +42,12 @@ struct pt_regs { | |||
42 | unsigned long si; | 42 | unsigned long si; |
43 | unsigned long di; | 43 | unsigned long di; |
44 | unsigned long bp; | 44 | unsigned long bp; |
45 | long ax; | 45 | unsigned long ax; |
46 | unsigned long ds; | 46 | unsigned long ds; |
47 | unsigned long es; | 47 | unsigned long es; |
48 | unsigned long fs; | 48 | unsigned long fs; |
49 | /* int gs; */ | 49 | /* int gs; */ |
50 | long orig_ax; | 50 | unsigned long orig_ax; |
51 | unsigned long ip; | 51 | unsigned long ip; |
52 | unsigned long cs; | 52 | unsigned long cs; |
53 | unsigned long flags; | 53 | unsigned long flags; |
@@ -145,7 +145,10 @@ extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int erro | |||
145 | void signal_fault(struct pt_regs *regs, void __user *frame, char *where); | 145 | void signal_fault(struct pt_regs *regs, void __user *frame, char *where); |
146 | #endif | 146 | #endif |
147 | 147 | ||
148 | #define regs_return_value(regs) ((regs)->ax) | 148 | static inline unsigned long regs_return_value(struct pt_regs *regs) |
149 | { | ||
150 | return regs->ax; | ||
151 | } | ||
149 | 152 | ||
150 | /* | 153 | /* |
151 | * user_mode_vm(regs) determines whether a register set came from user mode. | 154 | * user_mode_vm(regs) determines whether a register set came from user mode. |