arm64: add COMPAT_PSR_*_BIT flags
authorMarc Zyngier <Marc.Zyngier@arm.com>
Wed, 23 Jan 2013 16:59:32 +0000 (16:59 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 29 Jan 2013 16:56:17 +0000 (16:56 +0000)
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>
arch/arm64/include/asm/ptrace.h

index 4ce845f..41a71ee 100644 (file)
 #define COMPAT_PSR_MODE_UND    0x0000001b
 #define COMPAT_PSR_MODE_SYS    0x0000001f
 #define COMPAT_PSR_T_BIT       0x00000020
+#define COMPAT_PSR_F_BIT       0x00000040
+#define COMPAT_PSR_I_BIT       0x00000080
+#define COMPAT_PSR_A_BIT       0x00000100
+#define COMPAT_PSR_E_BIT       0x00000200
+#define COMPAT_PSR_J_BIT       0x01000000
+#define COMPAT_PSR_Q_BIT       0x08000000
+#define COMPAT_PSR_V_BIT       0x10000000
+#define COMPAT_PSR_C_BIT       0x20000000
+#define COMPAT_PSR_Z_BIT       0x40000000
+#define COMPAT_PSR_N_BIT       0x80000000
 #define COMPAT_PSR_IT_MASK     0x0600fc00      /* If-Then execution state mask */
 /*
  * These are 'magic' values for PTRACE_PEEKUSR that return info about where a