sbl b16: banner blx redirected to print stublet 0x8062150

This commit is contained in:
SashegDev
2026-09-11 06:40:20 +00:00
parent 537e2b6b2a
commit afc151ce0c
3 changed files with 66 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
.syntax unified
.cpu cortex-a7
.thumb
@ Banner stub for SBL1 logger call at 0x802f690 (blx r3 patched to bl here).
@ r0 = string. Print raw bytes via UARTDM until NUL (cap 256), return 0.
.text
.global banner_stub
banner_stub:
movw r3, #0xf000
movt r3, #0x78a
bn_loop:
ldrb r1, [r0], #1
cbz r1, bn_done
str r1, [r3, #0x70]
b bn_loop
bn_done:
movs r0, #0
bx lr