diff options
Diffstat (limited to 'firmware/target/arm/system-target.h')
-rw-r--r-- | firmware/target/arm/system-target.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/firmware/target/arm/system-target.h b/firmware/target/arm/system-target.h index 7533f5da76..4811f7e2d6 100644 --- a/firmware/target/arm/system-target.h +++ b/firmware/target/arm/system-target.h | |||
@@ -70,29 +70,20 @@ static inline unsigned int current_core(void) | |||
70 | ); | 70 | ); |
71 | return core; | 71 | return core; |
72 | } | 72 | } |
73 | #else | ||
74 | unsigned int current_core(void); | ||
75 | #endif | ||
76 | 73 | ||
77 | #if CONFIG_CPU != PP5002 | 74 | #define CACHE_FUNCTIONS_AS_CALL |
78 | 75 | ||
79 | #define HAVE_INVALIDATE_ICACHE | 76 | #define HAVE_INVALIDATE_ICACHE |
80 | static inline void invalidate_icache(void) | 77 | void invalidate_icache(void); |
81 | { | ||
82 | outl(inl(0xf000f044) | 0x6, 0xf000f044); | ||
83 | while ((CACHE_CTL & 0x8000) != 0); | ||
84 | } | ||
85 | 78 | ||
86 | #define HAVE_FLUSH_ICACHE | 79 | #define HAVE_FLUSH_ICACHE |
87 | static inline void flush_icache(void) | 80 | void flush_icache(void); |
88 | { | ||
89 | outl(inl(0xf000f044) | 0x2, 0xf000f044); | ||
90 | while ((CACHE_CTL & 0x8000) != 0); | ||
91 | } | ||
92 | 81 | ||
93 | #endif /* CONFIG_CPU */ | ||
94 | #else | 82 | #else |
83 | unsigned int current_core(void); | ||
84 | #endif /* CPU_PP502x */ | ||
95 | 85 | ||
96 | #endif | 86 | |
87 | #endif /* CPU_PP */ | ||
97 | 88 | ||
98 | #endif /* SYSTEM_TARGET_H */ | 89 | #endif /* SYSTEM_TARGET_H */ |