diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-09-08 03:21:00 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-08 03:21:00 -0400 |
commit | 6e4154d4c2dd3d7e61d19ddd2527322ce34c2f5a (patch) | |
tree | 5c5eab6df31e0dedefc57eae22251267f234b08c /arch/sh/mm/kmap.c | |
parent | 0906a3ad33a254094fb74828e3ddb9af8771a6da (diff) |
sh: Use more aggressive dcache purging in kmap teardown.
This fixes up a number of outstanding issues observed with old mappings
on the same colour hanging around. This requires some more optimal
handling, but is a safe fallback until all of the corner cases have been
handled.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/kmap.c')
-rw-r--r-- | arch/sh/mm/kmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/mm/kmap.c b/arch/sh/mm/kmap.c index c52cd8c40a64..16e01b5fed04 100644 --- a/arch/sh/mm/kmap.c +++ b/arch/sh/mm/kmap.c | |||
@@ -54,6 +54,9 @@ void kunmap_coherent(void *kvaddr) | |||
54 | unsigned long vaddr = (unsigned long)kvaddr & PAGE_MASK; | 54 | unsigned long vaddr = (unsigned long)kvaddr & PAGE_MASK; |
55 | enum fixed_addresses idx = __virt_to_fix(vaddr); | 55 | enum fixed_addresses idx = __virt_to_fix(vaddr); |
56 | 56 | ||
57 | /* XXX.. Kill this later, here for sanity at the moment.. */ | ||
58 | __flush_purge_region((void *)vaddr, PAGE_SIZE); | ||
59 | |||
57 | pte_clear(&init_mm, vaddr, kmap_coherent_pte - idx); | 60 | pte_clear(&init_mm, vaddr, kmap_coherent_pte - idx); |
58 | local_flush_tlb_one(get_asid(), vaddr); | 61 | local_flush_tlb_one(get_asid(), vaddr); |
59 | } | 62 | } |