aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorSean Anderson2022-03-22 16:59:28 -0400
committerTom Rini2022-04-01 16:56:53 -0400
commite75d791c5083cd7d25c36677825b2a01ce708b7d (patch)
treefbf94028bacc54b09768df62fa0fb1fca6544801 /arch/arm/include/asm
parente97ac4780d69c719b81086bba615c8568afd14a1 (diff)
arm64: Save spsr in pt_regs
This register holds "pstate" which includes (among other things) the instruction mode the CPU was in when the exception was taken. This is necessary to correctly interpret instructions at elr. Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/proc-armv/ptrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/proc-armv/ptrace.h b/arch/arm/include/asm/proc-armv/ptrace.h
index bebcaf6e332..3b8fe7aac04 100644
--- a/arch/arm/include/asm/proc-armv/ptrace.h
+++ b/arch/arm/include/asm/proc-armv/ptrace.h
@@ -21,7 +21,7 @@
* on the stack during an exception.
*/
struct pt_regs {
- unsigned long unused;
+ unsigned long spsr;
unsigned long elr;
unsigned long esr;
unsigned long regs[31];