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 /firmware/export/kernel.h | |
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 'firmware/export/kernel.h')
-rw-r--r-- | firmware/export/kernel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index 23c7bc7cb1..42d160bcea 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h | |||
@@ -66,7 +66,13 @@ struct mutex | |||
66 | }; | 66 | }; |
67 | 67 | ||
68 | /* global tick variable */ | 68 | /* global tick variable */ |
69 | #if (CONFIG_CPU == PP5020) && defined(BOOTLOADER) | ||
70 | /* We don't enable interrupts in the iPod bootloader, so we need to fake | ||
71 | the current_tick variable */ | ||
72 | #define current_tick ((*((volatile long*)0x60005010))/10000) | ||
73 | #else | ||
69 | extern long current_tick; | 74 | extern long current_tick; |
75 | #endif | ||
70 | 76 | ||
71 | #ifdef SIMULATOR | 77 | #ifdef SIMULATOR |
72 | #define sleep(x) sim_sleep(x) | 78 | #define sleep(x) sim_sleep(x) |