[SPARC64]: Fix flush_tsb_user() on SUN4V.
David S. Miller [Thu, 16 Feb 2006 05:01:31 +0000 (21:01 -0800)]
Needs to use physical addressing just like cheetah_plus.

Signed-off-by: David S. Miller <davem@davemloft.net>

arch/sparc64/mm/tsb.c

index 975242a..3c1ff05 100644 (file)
@@ -58,7 +58,7 @@ void flush_tsb_user(struct mmu_gather *mp)
 
        ctx = CTX_HWBITS(mm->context);
 
-       if (tlb_type == cheetah_plus)
+       if (tlb_type == cheetah_plus || tlb_type == hypervisor)
                base = __pa(tsb);
        else
                base = (unsigned long) tsb;