mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Coldfire: Don't clobber alwarm wakeup signal in dualboot mode
(See FS#7814 for details) Change-Id: I6a09a8dfe1abc3a396ca8afe1dbbf1d203c7e3e2
This commit is contained in:
parent
7e7ca0c858
commit
88cae9d13d
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ start:
|
||||||
lea MBAR2, %a1
|
lea MBAR2, %a1
|
||||||
move.l (%a1), %a0 /* store GPIO_READ result for button check in main() */
|
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
|
/* Wait ~3 seconds for ON-button release. We need roughly 300ns per
|
||||||
iteration, so we check 10000000 times to reach the desired delay */
|
iteration, so we check 10000000 times to reach the desired delay */
|
||||||
move.l #10000000, %d0
|
move.l #10000000, %d0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue