aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <Marc.Zyngier@arm.com>2013-01-23 11:59:32 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2013-01-29 11:56:17 -0500
commit10a3cc2f764038e388d6fc3510142ae7d23fb2d9 (patch)
tree583b06f1febed3c9846c946bc1aeba266e4ca18f
parent2475ff9d2c6ea3bbfed55c4635426c371f9ad327 (diff)
arm64: add COMPAT_PSR_*_BIT flags
In order to mess with the processor state when running 32bit guests, define all the AArch32 PSR flags. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/include/asm/ptrace.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/ptrace.h b/arch/arm64/include/asm/ptrace.h
index 4ce845f8ee1c..41a71ee4c3df 100644
--- a/arch/arm64/include/asm/ptrace.h
+++ b/arch/arm64/include/asm/ptrace.h
@@ -42,6 +42,16 @@
42#define COMPAT_PSR_MODE_UND 0x0000001b 42#define COMPAT_PSR_MODE_UND 0x0000001b
43#define COMPAT_PSR_MODE_SYS 0x0000001f 43#define COMPAT_PSR_MODE_SYS 0x0000001f
44#define COMPAT_PSR_T_BIT 0x00000020 44#define COMPAT_PSR_T_BIT 0x00000020
45#define COMPAT_PSR_F_BIT 0x00000040
46#define COMPAT_PSR_I_BIT 0x00000080
47#define COMPAT_PSR_A_BIT 0x00000100
48#define COMPAT_PSR_E_BIT 0x00000200
49#define COMPAT_PSR_J_BIT 0x01000000
50#define COMPAT_PSR_Q_BIT 0x08000000
51#define COMPAT_PSR_V_BIT 0x10000000
52#define COMPAT_PSR_C_BIT 0x20000000
53#define COMPAT_PSR_Z_BIT 0x40000000
54#define COMPAT_PSR_N_BIT 0x80000000
45#define COMPAT_PSR_IT_MASK 0x0600fc00 /* If-Then execution state mask */ 55#define COMPAT_PSR_IT_MASK 0x0600fc00 /* If-Then execution state mask */
46/* 56/*
47 * These are 'magic' values for PTRACE_PEEKUSR that return info about where a 57 * These are 'magic' values for PTRACE_PEEKUSR that return info about where a