summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-10-12 19:46:45 +0000
committerDave Chapman <dave@dchapman.com>2009-10-12 19:46:45 +0000
commita70c7bf862f6b4e31375ada8eb39c6535bed6eb4 (patch)
treead3a5d8eefc7fbfc803d651bdd160630c6857839 /firmware/target/arm
parent48658eec41e47eb74602b54f540aa92651946fd8 (diff)
downloadrockbox-a70c7bf862f6b4e31375ada8eb39c6535bed6eb4.tar.gz
rockbox-a70c7bf862f6b4e31375ada8eb39c6535bed6eb4.zip
Nano2G bootloader - fix dual-booting the Apple firmware.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/s5l8700/boot.lds3
-rw-r--r--firmware/target/arm/s5l8700/crt0.S2
2 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/s5l8700/boot.lds b/firmware/target/arm/s5l8700/boot.lds
index 637a3a29c1..308a97dca8 100644
--- a/firmware/target/arm/s5l8700/boot.lds
+++ b/firmware/target/arm/s5l8700/boot.lds
@@ -12,11 +12,10 @@ STARTUP(target/arm/s5l8700/crt0.o)
12#define DRAMORIG 0x08000000 12#define DRAMORIG 0x08000000
13#define DRAMSIZE (MEMORYSIZE * 0x100000) 13#define DRAMSIZE (MEMORYSIZE * 0x100000)
14 14
15#define IRAMORIG 0x22000000
15#if CONFIG_CPU==S5L8701 16#if CONFIG_CPU==S5L8701
16#define IRAMORIG 0x0
17#define IRAMSIZE 176K 17#define IRAMSIZE 176K
18#else 18#else
19#define IRAMORIG 0x22000000
20#define IRAMSIZE 256K 19#define IRAMSIZE 256K
21#endif 20#endif
22 21
diff --git a/firmware/target/arm/s5l8700/crt0.S b/firmware/target/arm/s5l8700/crt0.S
index 3cc376711c..98f98a3178 100644
--- a/firmware/target/arm/s5l8700/crt0.S
+++ b/firmware/target/arm/s5l8700/crt0.S
@@ -91,7 +91,7 @@ newstart2:
91#ifdef BOOTLOADER 91#ifdef BOOTLOADER
92 /* Relocate ourself to IRAM - we have been loaded to DRAM */ 92 /* Relocate ourself to IRAM - we have been loaded to DRAM */
93 mov r0, #0x08000000 /* source (DRAM) */ 93 mov r0, #0x08000000 /* source (DRAM) */
94 mov r1, #0x00000000 /* dest (IRAM) */ 94 mov r1, #0x22000000 /* dest (IRAM) */
95 ldr r2, =_dataend 95 ldr r2, =_dataend
961: 961:
97 cmp r2, r1 97 cmp r2, r1