diff options
author | George G. Davis <gdavis@mvista.com> | 2007-06-25 20:38:27 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-07-12 06:13:35 -0400 |
commit | 909d6c6c80311f800aee338e5fa528818b115951 (patch) | |
tree | d4934d8ea67ade7c78e02e4cebd0fc934d3698b1 /include | |
parent | 9d20fdd58e74d4d26dc5216efaaa0f800c23dd3a (diff) |
[ARM] 4453/1: Fully Decode ARM instruction set state in show_regs() tombstone
The ARM show_regs() tombstone only partially decodes which ARM ISA was
executing at the time a fault occurred displaying either "(T)" for the
Thumb case or nothing at all for other cases. This patch therefore
explicitly identifies which state the processor is in at the time of
a fault: ARM, Thumb, Jazelle or JazelleEE.
Signed-off-by: George G. Davis <gdavis@mvista.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/ptrace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-arm/ptrace.h b/include/asm-arm/ptrace.h index ee3d93c281d8..ff038b65f370 100644 --- a/include/asm-arm/ptrace.h +++ b/include/asm-arm/ptrace.h | |||
@@ -103,6 +103,10 @@ struct pt_regs { | |||
103 | #define thumb_mode(regs) (0) | 103 | #define thumb_mode(regs) (0) |
104 | #endif | 104 | #endif |
105 | 105 | ||
106 | #define isa_mode(regs) \ | ||
107 | ((((regs)->ARM_cpsr & PSR_J_BIT) >> 23) | \ | ||
108 | (((regs)->ARM_cpsr & PSR_T_BIT) >> 5)) | ||
109 | |||
106 | #define processor_mode(regs) \ | 110 | #define processor_mode(regs) \ |
107 | ((regs)->ARM_cpsr & MODE_MASK) | 111 | ((regs)->ARM_cpsr & MODE_MASK) |
108 | 112 | ||