diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-04-17 14:34:59 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-18 15:37:18 +1000 |
commit | ec2b36b9f23cfbbe94d89724b796b44fd57d5221 (patch) | |
tree | e0768000b44ffecf44882cd1d13c8b27f34fe91f /include | |
parent | f4ac7b5eb79ef15819c966b1f6b84bf443949123 (diff) | |
download | linux-ec2b36b9f23cfbbe94d89724b796b44fd57d5221.tar.gz linux-ec2b36b9f23cfbbe94d89724b796b44fd57d5221.tar.bz2 linux-ec2b36b9f23cfbbe94d89724b796b44fd57d5221.zip |
[POWERPC] Move stackframe definitions to common header
This moves various definitions used all over the place to parse stack
frames to ptrace.h so only one definition is needed.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/ptrace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-powerpc/ptrace.h b/include/asm-powerpc/ptrace.h index 891d68932f39..39023dde1cc4 100644 --- a/include/asm-powerpc/ptrace.h +++ b/include/asm-powerpc/ptrace.h @@ -58,6 +58,11 @@ struct pt_regs { #define __ARCH_WANT_COMPAT_SYS_PTRACE #define STACK_FRAME_OVERHEAD 112 /* size of minimum stack frame */ +#define STACK_FRAME_LR_SAVE 2 /* Location of LR in stack frame */ +#define STACK_FRAME_REGS_MARKER ASM_CONST(0x7265677368657265) +#define STACK_INT_FRAME_SIZE (sizeof(struct pt_regs) + \ + STACK_FRAME_OVERHEAD + 288) +#define STACK_FRAME_MARKER 12 /* Size of dummy stack frame allocated when calling signal handler. */ #define __SIGNAL_FRAMESIZE 128 @@ -66,6 +71,10 @@ struct pt_regs { #else /* __powerpc64__ */ #define STACK_FRAME_OVERHEAD 16 /* size of minimum stack frame */ +#define STACK_FRAME_LR_SAVE 1 /* Location of LR in stack frame */ +#define STACK_FRAME_REGS_MARKER ASM_CONST(0x72656773) +#define STACK_INT_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_OVERHEAD) +#define STACK_FRAME_MARKER 2 /* Size of stack frame allocated when calling signal handler. */ #define __SIGNAL_FRAMESIZE 64 |