summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/coldfire/crt0.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/coldfire/crt0.S b/firmware/target/coldfire/crt0.S
index 5e73131894..34492ec853 100644
--- a/firmware/target/coldfire/crt0.S
+++ b/firmware/target/coldfire/crt0.S
@@ -46,6 +46,10 @@ start:
lea MBAR2, %a1
move.l (%a1), %a0 /* store GPIO_READ result for button check in main() */
+ tst.b 0x30000000 /* preloader sets this to 1
+ if woke up due to RTC alarm */
+ bne .loadrockbox
+
/* Wait ~3 seconds for ON-button release. We need roughly 300ns per
iteration, so we check 10000000 times to reach the desired delay */
move.l #10000000, %d0