summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-21 21:13:03 +0000
committerDave Chapman <dave@dchapman.com>2006-02-21 21:13:03 +0000
commit8adc81dffbb72d98e469043e3c4ce8430f19799b (patch)
tree0af8ac3aef84466a2fade7b8d3604d5cf9f3d671 /bootloader
parentd3bb5a11c400597640a326cf2c4eff7f74925a96 (diff)
downloadrockbox-8adc81dffbb72d98e469043e3c4ce8430f19799b.tar.gz
rockbox-8adc81dffbb72d98e469043e3c4ce8430f19799b.tar.bz2
rockbox-8adc81dffbb72d98e469043e3c4ce8430f19799b.zip
iPod 3G: Use correct DRAM_START address when branching to Rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8767 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/ipod.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c
index 2728529dce..f62fa265a5 100644
--- a/bootloader/ipod.c
+++ b/bootloader/ipod.c
@@ -39,6 +39,9 @@
#include "power.h"
#include "file.h"
+#define XSC(X) #X
+#define SC(X) XSC(X)
+
#if (CONFIG_CPU == PP5020)
#define DRAM_START 0x10000000
#else
@@ -418,8 +421,8 @@ void* main(void)
/* Transfer execution directly to Rockbox - we don't want
to run the rest of the bootloader startup code. */
asm volatile(
- "mov r0, #0x10000000 \n"
- "mov pc, r0 \n"
+ "mov r0, #" SC(DRAM_START) "\n"
+ "mov pc, r0 \n"
);
/* We don't get here, but keep the compiler happy. */