Skip to content

Commit

Permalink
[SPARC64]: Use phys tsb address in tsb_insert() in SUN4V.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent ebd8c56 commit 3b3ab2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static inline void tsb_insert(struct tsb *ent, unsigned long tag, unsigned long
{
unsigned long tsb_addr = (unsigned long) ent;

if (tlb_type == cheetah_plus)
if (tlb_type == cheetah_plus || tlb_type == hypervisor)
tsb_addr = __pa(tsb_addr);

__tsb_insert(tsb_addr, tag, pte);
Expand Down

0 comments on commit 3b3ab2e

Please sign in to comment.