1
0
Fork 0
forked from len0rd/rockbox

Last commit for the flash bootloader. The bootloader build works properly either flashed or unflashed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19098 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2008-11-12 05:11:18 +00:00
parent d922f31a09
commit f32336e4a5
2 changed files with 85 additions and 8 deletions

View file

@ -105,10 +105,13 @@ start:
ldr r1, [r2]
ands r1, r1, #0x40000000
/* Woke up with the alarm - store a flag in GSTATUS3 */
ldrne r2, =0x560000b8
movne r1, #0x01
strne r1, [r2]
/* Store a flag in GSTATUS3 to indicate that the bootloader is flashed */
ldr r2, =0x560000b8
mov r1, #0x02
/* Woke up with the alarm? - store a flag in GSTATUS3 */
orrne r1, r1, #0x01
str r1, [r2]
bne poweron
/* Set GPG up to read power and menu status */