diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-04 16:10:20 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-04 16:10:20 +0000 |
commit | 17b19939e6406dd5713d69da2b12634791174cdc (patch) | |
tree | 9d1ac1930eb790bc282adb8dfe4b6c78331cb42a /firmware | |
parent | 84d28e8f78c95aeec6f776b089de2f6896d879e3 (diff) |
The UNCACHED_ADDR macro should not adjust addresses in the bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14981 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/system-target.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/system-target.h b/firmware/target/arm/system-target.h index 9a5135071c..6b35a49c97 100644 --- a/firmware/target/arm/system-target.h +++ b/firmware/target/arm/system-target.h @@ -70,8 +70,14 @@ static inline unsigned int current_core(void) return core; } +#ifdef BOOTLOADER +/* All addresses within rockbox are in IRAM in the bootloader so + are therefore uncached */ +#define UNCACHED_ADDR(a) (a) +#else #define UNCACHED_ADDR(a) \ ((typeof (a))((uintptr_t)(a) + 0x10000000)) +#endif #ifdef CPU_PP502x |