Browse Source

[SPARC64]: Fix flush_tsb_user() on SUN4V.

Needs to use physical addressing just like cheetah_plus.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 years ago
parent
commit
de635d833f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/sparc64/mm/tsb.c

+ 1 - 1
arch/sparc64/mm/tsb.c

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