From 6a67707b5ec3b2c649c401550bb7fdef2b7c8d07 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 17 Dec 2011 07:27:24 +0000 Subject: Commit to certain names for cache coherency APIs and discard the aliases. Wouldn't surprise me a bit to get some non-green. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31339 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/load_code.h | 2 +- firmware/export/system.h | 29 ----------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) (limited to 'firmware/export') 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) { (void)blob_size; /* commit dcache and discard icache */ - cpucache_invalidate(); + commit_discard_idcache(); return addr; } 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) #define DISABLE_INTERRUPTS HIGHEST_IRQ_LEVEL #endif -/* Just define these as empty if not declared */ -#ifdef HAVE_CPUCACHE_INVALIDATE -void cpucache_commit_discard(void); -/* deprecated alias */ -void cpucache_invalidate(void); -#else -static inline void cpucache_commit_discard(void) -{ -} -/* deprecated alias */ -static inline void cpucache_invalidate(void) -{ -} -#endif - -#ifdef HAVE_CPUCACHE_FLUSH -void cpucache_commit(void); -/* deprecated alias */ -void cpucache_flush(void); -#else -static inline void cpucache_commit(void) -{ -} -/* deprecated alias */ -static inline void cpucache_flush(void) -{ -} -#endif - /* Define this, if the CPU may take advantage of cache aligment. Is enabled * for all ARM CPUs. */ #ifdef CPU_ARM -- cgit v1.2.3