Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21411
b: refs/heads/master
c: e92b925
h: refs/heads/master
i:
  21409: a2ba409
  21407: bcdc1b9
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 54a46ca commit feec358
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02fd473bd4844befc74f7ca67cd60891e0a2d890
refs/heads/master: e92b92571c85dfa1cdc56e88566134c51ae1d12b
11 changes: 9 additions & 2 deletions trunk/arch/sparc64/mm/tsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,13 @@ static void copy_tsb(struct tsb *old_tsb, unsigned long old_size,
register unsigned long pte asm("o5");
unsigned long v, hash;

if (tlb_type == cheetah_plus) {
if (tlb_type == hypervisor) {
__asm__ __volatile__(
"ldda [%2] %3, %0"
: "=r" (tag), "=r" (pte)
: "r" (__pa(&old_tsb[i])),
"i" (ASI_QUAD_LDD_PHYS_4V));
} else if (tlb_type == cheetah_plus) {
__asm__ __volatile__(
"ldda [%2] %3, %0"
: "=r" (tag), "=r" (pte)
Expand Down Expand Up @@ -267,7 +273,8 @@ static void copy_tsb(struct tsb *old_tsb, unsigned long old_size,
v |= (i & (512UL - 1UL)) << 13UL;

hash = tsb_hash(v, new_nentries);
if (tlb_type == cheetah_plus) {
if (tlb_type == cheetah_plus ||
tlb_type == hypervisor) {
__asm__ __volatile__(
"stxa %0, [%1] %2\n\t"
"stxa %3, [%4] %2"
Expand Down

0 comments on commit feec358

Please sign in to comment.