summaryrefslogtreecommitdiff
path: root/firmware/target/arm/system-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/system-target.h')
-rw-r--r--firmware/target/arm/system-target.h6
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