diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/load_code.h | 2 | ||||
-rw-r--r-- | firmware/export/system.h | 29 |
2 files changed, 1 insertions, 30 deletions
diff --git a/firmware/export/load_code.h b/firmware/export/load_code.h index 55ce601ee5..6f8505aba7 100644 --- a/firmware/export/load_code.h +++ b/firmware/export/load_code.h | |||
@@ -35,7 +35,7 @@ static inline void *lc_open_from_mem(void* addr, size_t blob_size) | |||
35 | { | 35 | { |
36 | (void)blob_size; | 36 | (void)blob_size; |
37 | /* commit dcache and discard icache */ | 37 | /* commit dcache and discard icache */ |
38 | cpucache_invalidate(); | 38 | commit_discard_idcache(); |
39 | return addr; | 39 | return addr; |
40 | } | 40 | } |
41 | static inline void *lc_get_header(void *handle) { return handle; } | 41 | static inline void *lc_get_header(void *handle) { return handle; } |
diff --git a/firmware/export/system.h b/firmware/export/system.h index aa079940d1..1055c65b60 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -302,35 +302,6 @@ static inline uint32_t swaw32_hw(uint32_t value) | |||
302 | #define DISABLE_INTERRUPTS HIGHEST_IRQ_LEVEL | 302 | #define DISABLE_INTERRUPTS HIGHEST_IRQ_LEVEL |
303 | #endif | 303 | #endif |
304 | 304 | ||
305 | /* Just define these as empty if not declared */ | ||
306 | #ifdef HAVE_CPUCACHE_INVALIDATE | ||
307 | void cpucache_commit_discard(void); | ||
308 | /* deprecated alias */ | ||
309 | void cpucache_invalidate(void); | ||
310 | #else | ||
311 | static inline void cpucache_commit_discard(void) | ||
312 | { | ||
313 | } | ||
314 | /* deprecated alias */ | ||
315 | static inline void cpucache_invalidate(void) | ||
316 | { | ||
317 | } | ||
318 | #endif | ||
319 | |||
320 | #ifdef HAVE_CPUCACHE_FLUSH | ||
321 | void cpucache_commit(void); | ||
322 | /* deprecated alias */ | ||
323 | void cpucache_flush(void); | ||
324 | #else | ||
325 | static inline void cpucache_commit(void) | ||
326 | { | ||
327 | } | ||
328 | /* deprecated alias */ | ||
329 | static inline void cpucache_flush(void) | ||
330 | { | ||
331 | } | ||
332 | #endif | ||
333 | |||
334 | /* Define this, if the CPU may take advantage of cache aligment. Is enabled | 305 | /* Define this, if the CPU may take advantage of cache aligment. Is enabled |
335 | * for all ARM CPUs. */ | 306 | * for all ARM CPUs. */ |
336 | #ifdef CPU_ARM | 307 | #ifdef CPU_ARM |