summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index fb9dfa3003..b44600d2c2 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -272,12 +272,20 @@ static inline uint32_t swap_odd_even32(uint32_t value)
272#endif 272#endif
273 273
274/* Just define these as empty if not declared */ 274/* Just define these as empty if not declared */
275#ifndef HAVE_INVALIDATE_ICACHE 275#ifdef HAVE_CPUCACHE_INVALIDATE
276#define invalidate_icache() 276void cpucache_invalidate(void);
277#else
278static inline void cpucache_invalidate(void)
279{
280}
277#endif 281#endif
278 282
279#ifndef HAVE_FLUSH_ICACHE 283#ifdef HAVE_CPUCACHE_FLUSH
280#define flush_icache() 284void cpucache_flush(void);
285#else
286static inline void cpucache_flush(void)
287{
288}
281#endif 289#endif
282 290
283#ifdef PROC_NEEDS_CACHEALIGN 291#ifdef PROC_NEEDS_CACHEALIGN