diff options
Diffstat (limited to 'firmware/target')
-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 f4ffbfa6ee..46094bf6b6 100644 --- a/firmware/target/mips/mmu-mips.c +++ b/firmware/target/mips/mmu-mips.c | |||
@@ -235,7 +235,7 @@ void discard_dcache_range(const void *base, unsigned int size) | |||
235 | } | 235 | } |
236 | 236 | ||
237 | /* Interior of region is safe to discard */ | 237 | /* Interior of region is safe to discard */ |
238 | for(; ptr != end; ptr += CACHEALIGN_SIZE) | 238 | for(; ptr <= end; ptr += CACHEALIGN_SIZE) |
239 | __CACHE_OP(DCHitInv, ptr); | 239 | __CACHE_OP(DCHitInv, ptr); |
240 | 240 | ||
241 | SYNC_WB(); | 241 | SYNC_WB(); |