diff options
-rw-r--r-- | firmware/target/arm/system-pp502x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c index 700686b427..c4bf81dc5a 100644 --- a/firmware/target/arm/system-pp502x.c +++ b/firmware/target/arm/system-pp502x.c | |||
@@ -193,7 +193,7 @@ void __attribute__((interrupt("IRQ"))) irq_handler(void) | |||
193 | to extend the funtions to do alternate cache configurations. */ | 193 | to extend the funtions to do alternate cache configurations. */ |
194 | 194 | ||
195 | #ifndef BOOTLOADER | 195 | #ifndef BOOTLOADER |
196 | void ICODE_ATTR cpucache_flush(void) | 196 | void ICODE_ATTR cpucache_commit(void) |
197 | { | 197 | { |
198 | if (CACHE_CTL & CACHE_CTL_ENABLE) | 198 | if (CACHE_CTL & CACHE_CTL_ENABLE) |
199 | { | 199 | { |
@@ -202,8 +202,9 @@ void ICODE_ATTR cpucache_flush(void) | |||
202 | nop; nop; nop; nop; | 202 | nop; nop; nop; nop; |
203 | } | 203 | } |
204 | } | 204 | } |
205 | void cpucache_flush(void) __attribute__((alias("cpucache_commit"))); | ||
205 | 206 | ||
206 | void ICODE_ATTR cpucache_invalidate(void) | 207 | void ICODE_ATTR cpucache_commit_discard(void) |
207 | { | 208 | { |
208 | if (CACHE_CTL & CACHE_CTL_ENABLE) | 209 | if (CACHE_CTL & CACHE_CTL_ENABLE) |
209 | { | 210 | { |
@@ -212,6 +213,7 @@ void ICODE_ATTR cpucache_invalidate(void) | |||
212 | nop; nop; nop; nop; | 213 | nop; nop; nop; nop; |
213 | } | 214 | } |
214 | } | 215 | } |
216 | void cpucache_invalidate(void) __attribute__((alias("cpucache_commit_discard"))); | ||
215 | 217 | ||
216 | static void init_cache(void) | 218 | static void init_cache(void) |
217 | { | 219 | { |