diff options
-rw-r--r-- | arch/mips/mm/sc-mips.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/mm/sc-mips.c b/arch/mips/mm/sc-mips.c index b55c2d1b998f..5ab5fa8c1d82 100644 --- a/arch/mips/mm/sc-mips.c +++ b/arch/mips/mm/sc-mips.c | |||
@@ -32,6 +32,11 @@ static void mips_sc_wback_inv(unsigned long addr, unsigned long size) | |||
32 | */ | 32 | */ |
33 | static void mips_sc_inv(unsigned long addr, unsigned long size) | 33 | static void mips_sc_inv(unsigned long addr, unsigned long size) |
34 | { | 34 | { |
35 | unsigned long lsize = cpu_scache_line_size(); | ||
36 | unsigned long almask = ~(lsize - 1); | ||
37 | |||
38 | cache_op(Hit_Writeback_Inv_SD, addr & almask); | ||
39 | cache_op(Hit_Writeback_Inv_SD, (addr + size - 1) & almask); | ||
35 | blast_inv_scache_range(addr, addr + size); | 40 | blast_inv_scache_range(addr, addr + size); |
36 | } | 41 | } |
37 | 42 | ||