diff options
author | David S. Miller <davem@davemloft.net> | 2006-01-31 21:32:44 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:11:21 -0500 |
commit | 4753eb2ac7022b999e5e484f1a5dc001dba22bd3 (patch) | |
tree | 138321ebd3b3c3aeb99517ec5158a65f556da774 /arch/sparc64 | |
parent | 96c6e0d8e2a0eb1338751598be47fa1ffed91704 (diff) |
[SPARC64]: Fix incorrect TSB lock bit handling.
The TSB_LOCK_BIT define is actually a special
value shifted down by 32-bits for the assembler
code macros.
In C code, this isn't what we want.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/mm/tsb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/mm/tsb.c b/arch/sparc64/mm/tsb.c index 707af4b84a0e..e605478217c2 100644 --- a/arch/sparc64/mm/tsb.c +++ b/arch/sparc64/mm/tsb.c | |||
@@ -184,7 +184,7 @@ static void copy_tsb(struct tsb *old_tsb, unsigned long old_size, | |||
184 | : "=r" (tag), "=r" (pte) | 184 | : "=r" (tag), "=r" (pte) |
185 | : "r" (&old_tsb[i]), "i" (ASI_NUCLEUS_QUAD_LDD)); | 185 | : "r" (&old_tsb[i]), "i" (ASI_NUCLEUS_QUAD_LDD)); |
186 | 186 | ||
187 | if (!tag || (tag & TSB_TAG_LOCK)) | 187 | if (!tag || (tag & (1UL << TSB_TAG_LOCK_BIT))) |
188 | continue; | 188 | continue; |
189 | 189 | ||
190 | /* We only put base page size PTEs into the TSB, | 190 | /* We only put base page size PTEs into the TSB, |