summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2007-09-19 03:02:34 +0000
committerMark Arigo <markarigo@gmail.com>2007-09-19 03:02:34 +0000
commit547cffb90bffacc7f22e6661c61ccad830ce2c91 (patch)
treef9ec2bee43cf692125627a463027eb965a88f5ad
parent924c086d994e530160a718cf8487a38e2b93bde7 (diff)
downloadrockbox-547cffb90bffacc7f22e6661c61ccad830ce2c91.tar.gz
rockbox-547cffb90bffacc7f22e6661c61ccad830ce2c91.zip
Add some magic to the Sansa c200 bootloader to boot the OF.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14749 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/crt0-pp-bl.S11
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/target/arm/crt0-pp-bl.S b/firmware/target/arm/crt0-pp-bl.S
index ef04eced30..7ac6295305 100644
--- a/firmware/target/arm/crt0-pp-bl.S
+++ b/firmware/target/arm/crt0-pp-bl.S
@@ -166,7 +166,16 @@ cpu:
mov r3, #WAKE
str r3, [r4]
- mov pc, r0
+#ifdef SANSA_C200
+ /* Magic for loading the c200 OF */
+ ldr r0, =0xb00d10ad
+ mov r1, #0x700
+ ldr r2, =0xfff0
+ mov r3, #0x7
+#endif
+
+ ldr r4, =startup_loc
+ ldr pc, [r4]
startup_loc:
.word 0x0