summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/s3c2440/crt0.S11
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 */