more reliable but still wtf

This commit is contained in:
R
2024-04-13 23:56:36 +01:00
parent a609c3ddfb
commit 4e1d1ea4a3
2 changed files with 16 additions and 6 deletions
+3 -1
View File
@@ -45,7 +45,7 @@ _start:
la a3, R16_BKP_DATAR10
lhu a1, (a3)
la a2, BOOT_MAGIC_APP_IMMEDIATELY
beq a1, a2, _enter_application_code
beq a1, a2, _enter_application_code_magic
la a2, BOOT_MAGIC_BOOTLOADER
beq a1, a2, _enter_bootloader
@@ -69,6 +69,8 @@ _start:
sh zero, (a3)
// If the delay expires, boot the application after all
_enter_application_code_magic:
sh zero, (a3)
_enter_application_code:
// Clear all of these enables that we had set
la a0, R32_PWR_CTLR