forked from len0rd/rockbox
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
This commit is contained in:
parent
d3bb5a11c4
commit
8adc81dffb
1 changed files with 5 additions and 2 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue