aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-23 02:05:41 -0700
committerChristian Cunningham <cc@localhost>2022-01-23 02:05:41 -0700
commitbb09366a7cafeb8ab91b55b98f15934f0f512d47 (patch)
tree24d528f0486e7f323ee17142e12433ffee4087d0
parente03ca98ccbe07236f3c513ec601db3591a5fc683 (diff)
Fixed incorrect lr
-rw-r--r--src/boot.S7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/boot.S b/src/boot.S
index 1217424..3664cc4 100644
--- a/src/boot.S
+++ b/src/boot.S
@@ -162,13 +162,10 @@ svc:
ldmfd sp!, {r0-r12,pc}^
io_halt_prefetch:
stmfd sp!, {r0-r12,lr}
+ mov r4, lr
ldr r0, =prefetch_msg
bl uart_string
- mrs r1, spsr
- mrs r2, cpsr
- msr cpsr_c, r1
- mov r0, lr
- msr cpsr_c, r2
+ mov r0, r4
bl uart_hexn
ldmfd sp!, {r0-r12,lr}
subs pc, lr, #4