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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index ce6277ac7a..ed10c84a58 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -282,16 +282,28 @@ static inline uint32_t swap_odd_even32(uint32_t value)
282 282
283/* Just define these as empty if not declared */ 283/* Just define these as empty if not declared */
284#ifdef HAVE_CPUCACHE_INVALIDATE 284#ifdef HAVE_CPUCACHE_INVALIDATE
285void cpucache_commit_discard(void);
286/* deprecated alias */
285void cpucache_invalidate(void); 287void cpucache_invalidate(void);
286#else 288#else
289static inline void cpucache_commit_discard(void)
290{
291}
292/* deprecated alias */
287static inline void cpucache_invalidate(void) 293static inline void cpucache_invalidate(void)
288{ 294{
289} 295}
290#endif 296#endif
291 297
292#ifdef HAVE_CPUCACHE_FLUSH 298#ifdef HAVE_CPUCACHE_FLUSH
299void cpucache_commit(void);
300/* deprecated alias */
293void cpucache_flush(void); 301void cpucache_flush(void);
294#else 302#else
303static inline void cpucache_commit(void)
304{
305}
306/* deprecated alias */
295static inline void cpucache_flush(void) 307static inline void cpucache_flush(void)
296{ 308{
297} 309}