diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2008-11-12 05:11:18 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2008-11-12 05:11:18 +0000 |
commit | f32336e4a5ba3fe70e0af24b5d815518dfb223ea (patch) | |
tree | ca903b05de6ac0a0229a2c8ed0dac30800bbeb00 /firmware/target | |
parent | d922f31a09f391d2aac26b421e75611f83972b90 (diff) |
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
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/s3c2440/crt0.S | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/target/arm/s3c2440/crt0.S b/firmware/target/arm/s3c2440/crt0.S index af0ef5bba8..a05fd78fe9 100644 --- a/firmware/target/arm/s3c2440/crt0.S +++ b/firmware/target/arm/s3c2440/crt0.S @@ -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 */ |