aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-23 01:38:15 -0700
committerChristian Cunningham <cc@localhost>2022-01-23 01:38:15 -0700
commite03ca98ccbe07236f3c513ec601db3591a5fc683 (patch)
treeca5c20b3df66662917c9484ddccb2ebeef444895 /src
parent7cd13a5d04fbcf3178038a770c5edde423b4a542 (diff)
Get prev stack
Diffstat (limited to 'src')
-rw-r--r--src/boot.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/boot.S b/src/boot.S
index d8ebba4..1217424 100644
--- a/src/boot.S
+++ b/src/boot.S
@@ -162,11 +162,13 @@ svc:
ldmfd sp!, {r0-r12,pc}^
io_halt_prefetch:
stmfd sp!, {r0-r12,lr}
- push {lr}
ldr r0, =prefetch_msg
bl uart_string
- pop {lr}
+ mrs r1, spsr
+ mrs r2, cpsr
+ msr cpsr_c, r1
mov r0, lr
+ msr cpsr_c, r2
bl uart_hexn
ldmfd sp!, {r0-r12,lr}
subs pc, lr, #4