diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2011-01-01 19:36:36 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-05 08:58:19 +0100 |
commit | eac676e531214f1e276645613acae7d7c4529035 (patch) | |
tree | ce1272ecf43494d7bf796b1083c98f5696d7af05 /arch/sh/include/asm/ptrace.h | |
parent | sh: Tidy up SH-4A unaligned load support. (diff) | |
download | linux-eac676e531214f1e276645613acae7d7c4529035.tar.xz linux-eac676e531214f1e276645613acae7d7c4529035.zip |
sh: correct definitions to access stack pointers
A definition like:
#define regs_return_value(regs) ((regs)->regs[0])
called with regs_return_value(foo) will be preprocessed to:
((foo)->foo[0])
^^^
So to fix this to ensure the preprocessor compiles such calls correctly.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/ptrace.h')
-rw-r--r-- | arch/sh/include/asm/ptrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h index f6edc10aa0d3..de167d3a1a80 100644 --- a/arch/sh/include/asm/ptrace.h +++ b/arch/sh/include/asm/ptrace.h @@ -40,8 +40,8 @@ #include <asm/system.h> #define user_mode(regs) (((regs)->sr & 0x40000000)==0) -#define user_stack_pointer(regs) ((unsigned long)(regs)->regs[15]) -#define kernel_stack_pointer(regs) ((unsigned long)(regs)->regs[15]) +#define user_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15]) +#define kernel_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15]) #define instruction_pointer(regs) ((unsigned long)(regs)->pc) extern void show_regs(struct pt_regs *); |