Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166613
b: refs/heads/master
c: 96983ff
h: refs/heads/master
i:
  166611: fd7ebfc
v: v3
  • Loading branch information
Kevin Cernekee authored and Ralf Baechle committed Sep 30, 2009
1 parent 4ce4974 commit fbb3b08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a648e8119666782f21b509a7886be9b281e41ccb
refs/heads/master: 96983ffefce46312e9372d357309dda413553009
5 changes: 5 additions & 0 deletions trunk/arch/mips/mm/sc-mips.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ static void mips_sc_wback_inv(unsigned long addr, unsigned long size)
*/
static void mips_sc_inv(unsigned long addr, unsigned long size)
{
unsigned long lsize = cpu_scache_line_size();
unsigned long almask = ~(lsize - 1);

cache_op(Hit_Writeback_Inv_SD, addr & almask);
cache_op(Hit_Writeback_Inv_SD, (addr + size - 1) & almask);
blast_inv_scache_range(addr, addr + size);
}

Expand Down

0 comments on commit fbb3b08

Please sign in to comment.