diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/mips/mmu-mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/mips/mmu-mips.c b/firmware/target/mips/mmu-mips.c index 4f2de528bd..2daed5ed9e 100644 --- a/firmware/target/mips/mmu-mips.c +++ b/firmware/target/mips/mmu-mips.c | |||
@@ -234,7 +234,7 @@ void discard_dcache_range(const void *base, unsigned int size) | |||
234 | cacheline and shrink down the region to discard. */ | 234 | cacheline and shrink down the region to discard. */ |
235 | if (ptr != end && (end !=((char*)base + size))) { | 235 | if (ptr != end && (end !=((char*)base + size))) { |
236 | end -= CACHEALIGN_SIZE; | 236 | end -= CACHEALIGN_SIZE; |
237 | __CACHE_OP(DCHitWBInv, ptr); | 237 | __CACHE_OP(DCHitWBInv, end); |
238 | } | 238 | } |
239 | 239 | ||
240 | /* Finally, discard whatever is left */ | 240 | /* Finally, discard whatever is left */ |