b27: poll re-init skip + bits pref-set

This commit is contained in:
SashegDev
2026-09-13 12:12:51 +00:00
parent 8b1eaeba18
commit 9cd903c34d
5 changed files with 102 additions and 7 deletions
+4 -4
View File
@@ -375,10 +375,10 @@ def main():
# PBL version-table fabrication (b23): [0x080528D0] = STUBV so the
# rollback query's blx calls maze (returns 0 = versions OK).
W32(0x080528D0, STUBV)
# HW-ready bit fabrication (b25): [0x073A100] bit2 = peripheral
# status done-bit (SBL only reads it, never writes; HW would set it).
# Poll is lsls#29+bpl (checks bit2, NOT bit31!).
W32(0x073A100, 0x00000004)
# HW-ready bit fabrication (b25): [0x073A100] bits 0,1,2 = peripheral
# status done-bits (poll#1 checks bit2 (lsls#29), poll#2 bit1 (lsls#30),
# post-poll gate bit0 (lsls#31)). SBL only reads it, never writes.
W32(0x073A100, 0x00000007)
# PBL world-switch Thumb-stub (b24): the ARM trampoline at 0x221EF8
# is entered in Thumb (mode confusion at dispatch); real ARM would
# save regs/CPS to MON and call TZ (not loaded yet). Stub returns 0