diff options
-rw-r--r-- | arch/arm/include/asm/ptrace.h | 7 | ||||
-rw-r--r-- | arch/arm/kernel/signal.c | 8 |
2 files changed, 13 insertions, 2 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 | /* |
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 80b8b5c7e07a..442b87476f97 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
@@ -426,9 +426,13 @@ setup_return(struct pt_regs *regs, struct k_sigaction *ka, | |||
426 | */ | 426 | */ |
427 | thumb = handler & 1; | 427 | thumb = handler & 1; |
428 | 428 | ||
429 | if (thumb) | 429 | if (thumb) { |
430 | cpsr |= PSR_T_BIT; | 430 | cpsr |= PSR_T_BIT; |
431 | else | 431 | #if __LINUX_ARM_ARCH__ >= 7 |
432 | /* clear the If-Then Thumb-2 execution state */ | ||
433 | cpsr &= ~PSR_IT_MASK; | ||
434 | #endif | ||
435 | } else | ||
432 | cpsr &= ~PSR_T_BIT; | 436 | cpsr &= ~PSR_T_BIT; |
433 | } | 437 | } |
434 | #endif | 438 | #endif |