diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-06-14 03:02:47 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-06-14 03:02:47 -0400 |
commit | da28c597996a964a195529595c37f7aacd6dad09 (patch) | |
tree | fc16249697efb5bc9bb1863fb02c40b902b2dd7c /arch/sh/include/asm/ptrace_64.h | |
parent | eaaaeef392cb245e415c31d480ed2d5a466fd88f (diff) |
sh: split out ptrace header for _32/_64 variants.
asm/ptrace.h is getting a bit messy, with the _32/_64-specific changes
being fairly insular. This splits out the header accordingly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/ptrace_64.h')
-rw-r--r-- | arch/sh/include/asm/ptrace_64.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/sh/include/asm/ptrace_64.h b/arch/sh/include/asm/ptrace_64.h new file mode 100644 index 00000000000..d43c1cb0bbe --- /dev/null +++ b/arch/sh/include/asm/ptrace_64.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef __ASM_SH_PTRACE_64_H | ||
2 | #define __ASM_SH_PTRACE_64_H | ||
3 | |||
4 | struct pt_regs { | ||
5 | unsigned long long pc; | ||
6 | unsigned long long sr; | ||
7 | long long syscall_nr; | ||
8 | unsigned long long regs[63]; | ||
9 | unsigned long long tregs[8]; | ||
10 | unsigned long long pad[2]; | ||
11 | }; | ||
12 | |||
13 | #ifdef __KERNEL__ | ||
14 | |||
15 | #define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7]) | ||
16 | #define regs_return_value(regs) ((regs)->regs[3]) | ||
17 | |||
18 | #endif /* __KERNEL__ */ | ||
19 | |||
20 | #endif /* __ASM_SH_PTRACE_64_H */ | ||