stubs relayout: maze guard 36B, S6->0x8062160, banner->0x8062170

This commit is contained in:
SashegDev
2026-09-11 07:44:19 +00:00
parent 474c3c8318
commit 72f23b43c9
3 changed files with 23 additions and 10 deletions
+9
View File
@@ -2,6 +2,9 @@
.cpu cortex-a7
.thumb
@ maze entry logger: record lr/sp to mailbox 0x08062200, return 0.
@ Guard: if lr is outside known-good SBL/stub ranges, spin with
@ interrupts disabled instead of jumping into the void (post-mortem
@ via vec trap regs).
.text
.global maze_stub
maze_stub:
@@ -10,4 +13,10 @@ maze_stub:
str lr, [r12]
str sp, [r12, #4]
movs r0, #0
lsr r12, lr, #24
cmp r12, #0x08
bne maze_hang
bx lr
maze_hang:
cpsid i
b maze_hang