diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-02-11 12:55:51 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-02-11 12:55:51 +0000 |
commit | 21f0c9a2829415f52b64cbdf965b01525e78f17a (patch) | |
tree | b5cb8021097722969f75784011c9f64f991c0c3d /firmware/export/system.h | |
parent | 4cd7597172d916db9fc99bde4c03b669366f852a (diff) | |
download | rockbox-21f0c9a2829415f52b64cbdf965b01525e78f17a.tar.gz rockbox-21f0c9a2829415f52b64cbdf965b01525e78f17a.zip |
Make basic cache functions into calls, and get rid of CACHE_FUNCTION_WRAPPERS and CACHE_FUNCTIONS_AS_CALL macros. Rename flush/invalidate_icache to cpucache_flush/invalidate. They're inlined only if an implementation isn't provided by defining HAVE_CPUCACHE_FLUSH/INVALIDATE.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19971 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r-- | firmware/export/system.h | 16 |
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() | 276 | void cpucache_invalidate(void); |
277 | #else | ||
278 | static 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() | 284 | void cpucache_flush(void); |
285 | #else | ||
286 | static inline void cpucache_flush(void) | ||
287 | { | ||
288 | } | ||
281 | #endif | 289 | #endif |
282 | 290 | ||
283 | #ifdef PROC_NEEDS_CACHEALIGN | 291 | #ifdef PROC_NEEDS_CACHEALIGN |