Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21347
b: refs/heads/master
c: 4753eb2
h: refs/heads/master
i:
  21345: 7a5da1e
  21343: 0d269c4
v: v3
  • Loading branch information
David S. Miller authored and David S. Miller committed Mar 20, 2006
1 parent 2f95a7e commit efb840c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 96c6e0d8e2a0eb1338751598be47fa1ffed91704
refs/heads/master: 4753eb2ac7022b999e5e484f1a5dc001dba22bd3
2 changes: 1 addition & 1 deletion trunk/arch/sparc64/mm/tsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static void copy_tsb(struct tsb *old_tsb, unsigned long old_size,
: "=r" (tag), "=r" (pte)
: "r" (&old_tsb[i]), "i" (ASI_NUCLEUS_QUAD_LDD));

if (!tag || (tag & TSB_TAG_LOCK))
if (!tag || (tag & (1UL << TSB_TAG_LOCK_BIT)))
continue;

/* We only put base page size PTEs into the TSB,
Expand Down
5 changes: 3 additions & 2 deletions trunk/include/asm-sparc64/tsb.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@
* possible solution is to use RCU for the freeing of the TSB.
*/

#define TSB_TAG_LOCK (1 << (47 - 32))
#define TSB_TAG_LOCK_BIT 47
#define TSB_TAG_LOCK_HIGH (1 << (TSB_TAG_LOCK_BIT - 32))

#define TSB_MEMBAR membar #StoreStore

#define TSB_LOCK_TAG(TSB, REG1, REG2) \
99: lduwa [TSB] ASI_N, REG1; \
sethi %hi(TSB_TAG_LOCK), REG2;\
sethi %hi(TSB_TAG_LOCK_HIGH), REG2;\
andcc REG1, REG2, %g0; \
bne,pn %icc, 99b; \
nop; \
Expand Down

0 comments on commit efb840c

Please sign in to comment.