diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-05-30 09:00:15 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-05-30 09:00:15 -0400 |
commit | d71e1352e240dea32d481ad8d662e8de4406ac7e (patch) | |
tree | 823bd3c503988520319b4658d1f2a8b8b4cb1328 /arch/arm/include/asm/ptrace.h | |
parent | ba3c02636a0743a62cb50b920d36e1c046ab88cf (diff) |
Clear the IT state when invoking a Thumb-2 signal handler
If a process is interrupted during an If-Then block and a signal is
invoked, the ITSTATE bits must be cleared otherwise the handler would
not run correctly.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Joseph S. Myers <joseph@codesourcery.com>
Diffstat (limited to 'arch/arm/include/asm/ptrace.h')
-rw-r--r-- | arch/arm/include/asm/ptrace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h index 236a06b9b7ce..4a4290f7b4a2 100644 --- a/arch/arm/include/asm/ptrace.h +++ b/arch/arm/include/asm/ptrace.h | |||
@@ -65,6 +65,13 @@ | |||
65 | #define PSR_x 0x0000ff00 /* Extension */ | 65 | #define PSR_x 0x0000ff00 /* Extension */ |
66 | #define PSR_c 0x000000ff /* Control */ | 66 | #define PSR_c 0x000000ff /* Control */ |
67 | 67 | ||
68 | /* | ||
69 | * ARMv7 groups of APSR bits | ||
70 | */ | ||
71 | #define PSR_ISET_MASK 0x01000010 /* ISA state (J, T) mask */ | ||
72 | #define PSR_IT_MASK 0x0600fc00 /* If-Then execution state mask */ | ||
73 | #define PSR_ENDIAN_MASK 0x00000200 /* Endianness state mask */ | ||
74 | |||
68 | #ifndef __ASSEMBLY__ | 75 | #ifndef __ASSEMBLY__ |
69 | 76 | ||
70 | /* | 77 | /* |