summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire')
-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:
46 lea MBAR2, %a1 46 lea MBAR2, %a1
47 move.l (%a1), %a0 /* store GPIO_READ result for button check in main() */ 47 move.l (%a1), %a0 /* store GPIO_READ result for button check in main() */
48 48
49 tst.b 0x30000000 /* preloader sets this to 1
50 if woke up due to RTC alarm */
51 bne .loadrockbox
52
49 /* Wait ~3 seconds for ON-button release. We need roughly 300ns per 53 /* Wait ~3 seconds for ON-button release. We need roughly 300ns per
50 iteration, so we check 10000000 times to reach the desired delay */ 54 iteration, so we check 10000000 times to reach the desired delay */
51 move.l #10000000, %d0 55 move.l #10000000, %d0