diff options
Diffstat (limited to 'firmware/target/mips')
-rw-r--r-- | firmware/target/mips/mmu-mips.c | 6 | ||||
-rw-r--r-- | firmware/target/mips/mmu-mips.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/firmware/target/mips/mmu-mips.c b/firmware/target/mips/mmu-mips.c index 31b07409d5..9dcec43321 100644 --- a/firmware/target/mips/mmu-mips.c +++ b/firmware/target/mips/mmu-mips.c | |||
@@ -169,12 +169,6 @@ void __icache_invalidate_all(void) | |||
169 | : "r" (i)); | 169 | : "r" (i)); |
170 | } | 170 | } |
171 | 171 | ||
172 | void cpucache_commit_discard(void) | ||
173 | { | ||
174 | __icache_invalidate_all(); | ||
175 | } | ||
176 | void cpucache_invalidate(void) __attribute__((alias("cpucache_commit_discard"))); | ||
177 | |||
178 | void __dcache_invalidate_all(void) | 172 | void __dcache_invalidate_all(void) |
179 | { | 173 | { |
180 | unsigned int i; | 174 | unsigned int i; |
diff --git a/firmware/target/mips/mmu-mips.h b/firmware/target/mips/mmu-mips.h index f3d35f606d..47aea807cc 100644 --- a/firmware/target/mips/mmu-mips.h +++ b/firmware/target/mips/mmu-mips.h | |||
@@ -37,4 +37,8 @@ void __icache_invalidate_all(void); | |||
37 | void __flush_dcache_line(unsigned long addr); | 37 | void __flush_dcache_line(unsigned long addr); |
38 | void dma_cache_wback_inv(unsigned long addr, unsigned long size); | 38 | void dma_cache_wback_inv(unsigned long addr, unsigned long size); |
39 | 39 | ||
40 | #define commit_discard_idcache __icache_invalidate_all | ||
41 | #define commit_discard_dcache __dcache_invalidate_all | ||
42 | #define commit_dcache __dcache_writeback_all | ||
43 | |||
40 | #endif /* __MMU_MIPS_INCLUDE_H */ | 44 | #endif /* __MMU_MIPS_INCLUDE_H */ |