diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-05-13 10:22:38 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-06-22 19:54:52 +0100 |
commit | e6a9dc6129d23cd3025e841c4e13a70910a37135 (patch) | |
tree | c640167a388bc12c4e82f6416becd61546c126c3 /arch/arm/include/asm/ptrace.h | |
parent | 5745eef6b813194b4dd3e2aee1dd712d8512bf91 (diff) | |
download | op-kernel-dev-e6a9dc6129d23cd3025e841c4e13a70910a37135.zip op-kernel-dev-e6a9dc6129d23cd3025e841c4e13a70910a37135.tar.gz |
ARM: introduce svc_pt_regs structure
Since the privileged mode pt_regs are an extended version of the saved
userland pt_regs, introduce a new svc_pt_regs structure to describe this
layout.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/ptrace.h')
-rw-r--r-- | arch/arm/include/asm/ptrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h index 51622ba..5194cf7 100644 --- a/arch/arm/include/asm/ptrace.h +++ b/arch/arm/include/asm/ptrace.h @@ -13,10 +13,18 @@ #include <uapi/asm/ptrace.h> #ifndef __ASSEMBLY__ +#include <linux/types.h> + struct pt_regs { unsigned long uregs[18]; }; +struct svc_pt_regs { + struct pt_regs regs; + u32 dacr; + u32 unused; +}; + #define user_mode(regs) \ (((regs)->ARM_cpsr & 0xf) == 0) |