summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/ptrace.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-05-13 10:22:38 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-06-22 19:54:52 +0100
commite6a9dc6129d23cd3025e841c4e13a70910a37135 (patch)
treec640167a388bc12c4e82f6416becd61546c126c3 /arch/arm/include/asm/ptrace.h
parent5745eef6b813194b4dd3e2aee1dd712d8512bf91 (diff)
downloadblackbird-op-linux-e6a9dc6129d23cd3025e841c4e13a70910a37135.tar.gz
blackbird-op-linux-e6a9dc6129d23cd3025e841c4e13a70910a37135.zip
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h
index 51622ba7c4a6..5194cf79c90f 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)
OpenPOWER on IntegriCloud