Nano2G bootloader - fix dual-booting the Apple firmware.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23139 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2009-10-12 19:46:45 +00:00
parent 48658eec41
commit a70c7bf862
3 changed files with 15 additions and 11 deletions

View file

@ -12,11 +12,10 @@ STARTUP(target/arm/s5l8700/crt0.o)
#define DRAMORIG 0x08000000
#define DRAMSIZE (MEMORYSIZE * 0x100000)
#define IRAMORIG 0x22000000
#if CONFIG_CPU==S5L8701
#define IRAMORIG 0x0
#define IRAMSIZE 176K
#else
#define IRAMORIG 0x22000000
#define IRAMSIZE 256K
#endif

View file

@ -91,7 +91,7 @@ newstart2:
#ifdef BOOTLOADER
/* Relocate ourself to IRAM - we have been loaded to DRAM */
mov r0, #0x08000000 /* source (DRAM) */
mov r1, #0x00000000 /* dest (IRAM) */
mov r1, #0x22000000 /* dest (IRAM) */
ldr r2, =_dataend
1:
cmp r2, r1