From 21f0c9a2829415f52b64cbdf965b01525e78f17a Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 11 Feb 2009 12:55:51 +0000 Subject: 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 --- firmware/target/arm/system-pp502x.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'firmware/target/arm/system-pp502x.c') diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c index b1cef7152a..10a7651f7b 100644 --- a/firmware/target/arm/system-pp502x.c +++ b/firmware/target/arm/system-pp502x.c @@ -163,8 +163,7 @@ void __attribute__((interrupt("IRQ"))) irq_handler(void) to extend the funtions to do alternate cache configurations. */ #ifndef BOOTLOADER -void flush_icache(void) ICODE_ATTR; -void flush_icache(void) +void ICODE_ATTR cpucache_flush(void) { if (CACHE_CTL & CACHE_CTL_ENABLE) { @@ -173,8 +172,7 @@ void flush_icache(void) } } -void invalidate_icache(void) ICODE_ATTR; -void invalidate_icache(void) +void ICODE_ATTR cpucache_invalidate(void) { if (CACHE_CTL & CACHE_CTL_ENABLE) { -- cgit v1.2.3