diff options
author | Dave Chapman <dave@dchapman.com> | 2006-01-05 17:02:48 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-01-05 17:02:48 +0000 |
commit | cb7e695ef9d0166b77f14d6d260733f0ff888f13 (patch) | |
tree | d43209034aaffbe28ce5fbc3b4c59cdd5187a3b6 /bootloader | |
parent | 5a313efa0c685c52116e008b0e0fa132c05fd9bb (diff) | |
download | rockbox-cb7e695ef9d0166b77f14d6d260733f0ff888f13.tar.gz rockbox-cb7e695ef9d0166b77f14d6d260733f0ff888f13.zip |
iPod: Fix the bootloader so it can load and run the original Apple firmware again. The Rockbox firmware was doing too much to the hardware so we remove most of the initialisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8301 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/ipod.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c index 5b8c0ee217..b1722086e1 100644 --- a/bootloader/ipod.c +++ b/bootloader/ipod.c | |||
@@ -415,7 +415,16 @@ void* main(void) | |||
415 | lcd_puts(0, line++, "Rockbox loaded."); | 415 | lcd_puts(0, line++, "Rockbox loaded."); |
416 | lcd_update(); | 416 | lcd_update(); |
417 | memcpy((void*)DRAM_START,loadbuffer,rc); | 417 | memcpy((void*)DRAM_START,loadbuffer,rc); |
418 | return (void*)DRAM_START; | 418 | |
419 | /* Transfer execution directly to Rockbox - we don't want | ||
420 | to run the rest of the bootloader startup code. */ | ||
421 | asm volatile( | ||
422 | "mov r0, #0x10000000 \n" | ||
423 | "mov pc, r0 \n" | ||
424 | ); | ||
425 | |||
426 | /* We don't get here, but keep the compiler happy. */ | ||
427 | return (void*)0; | ||
419 | } | 428 | } |
420 | } | 429 | } |
421 | 430 | ||