diff options
Diffstat (limited to 'firmware/target/arm/system-target.h')
-rw-r--r-- | firmware/target/arm/system-target.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/system-target.h b/firmware/target/arm/system-target.h index 6e433be9d5..e9419b3f86 100644 --- a/firmware/target/arm/system-target.h +++ b/firmware/target/arm/system-target.h | |||
@@ -94,11 +94,17 @@ static inline unsigned int processor_id(void) | |||
94 | #define UNCACHED_ADDR(a) (a) | 94 | #define UNCACHED_ADDR(a) (a) |
95 | #else | 95 | #else |
96 | #define UNCACHED_ADDR(a) \ | 96 | #define UNCACHED_ADDR(a) \ |
97 | ((typeof (a))((uintptr_t)(a) + 0x10000000)) | 97 | ((typeof (a))((uintptr_t)(a) | 0x10000000)) |
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | #ifdef CPU_PP502x | 100 | #ifdef CPU_PP502x |
101 | 101 | ||
102 | /* Certain data needs to be out of the way of cache line interference | ||
103 | * such as data for COP use or for use with UNCACHED_ADDR */ | ||
104 | #define PROC_NEEDS_CACHEALIGN | ||
105 | #define CACHEALIGN_BITS (5) /* 2^5 = 32 bytes */ | ||
106 | |||
107 | /** cache functions **/ | ||
102 | #ifndef BOOTLOADER | 108 | #ifndef BOOTLOADER |
103 | #define CACHE_FUNCTIONS_AS_CALL | 109 | #define CACHE_FUNCTIONS_AS_CALL |
104 | 110 | ||