From f32336e4a5ba3fe70e0af24b5d815518dfb223ea Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Wed, 12 Nov 2008 05:11:18 +0000 Subject: 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 --- firmware/target/arm/s3c2440/crt0.S | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'firmware/target/arm/s3c2440') 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 */ -- cgit v1.2.3