diff options
Diffstat (limited to 'firmware/target/arm/s3c2440')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/system-target.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/system-target.h b/firmware/target/arm/s3c2440/gigabeat-fx/system-target.h index 320c595b99..aa7c0aa50c 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/system-target.h +++ b/firmware/target/arm/s3c2440/gigabeat-fx/system-target.h | |||
@@ -41,15 +41,9 @@ void s3c_regset32(volatile unsigned long *reg, unsigned long bits); | |||
41 | /* Clear register bits */ | 41 | /* Clear register bits */ |
42 | void s3c_regclr32(volatile unsigned long *reg, unsigned long bits); | 42 | void s3c_regclr32(volatile unsigned long *reg, unsigned long bits); |
43 | 43 | ||
44 | #define HAVE_INVALIDATE_ICACHE | 44 | #define HAVE_CPUCACHE_FLUSH |
45 | static inline void invalidate_icache(void) | 45 | #define HAVE_CPUCACHE_INVALIDATE |
46 | { | 46 | #define cpucache_flush clean_dcache |
47 | clean_dcache(); | 47 | #define cpucache_invalidate invalidate_idcache |
48 | asm volatile( | ||
49 | "mov r0, #0 \n" | ||
50 | "mcr p15, 0, r0, c7, c5, 0 \n" | ||
51 | : : : "r0" | ||
52 | ); | ||
53 | } | ||
54 | 48 | ||
55 | #endif /* SYSTEM_TARGET_H */ | 49 | #endif /* SYSTEM_TARGET_H */ |