aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/ktlb.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/kernel/ktlb.S b/arch/sparc/kernel/ktlb.S
index fde5a419cf27..7ad46bc0c698 100644
--- a/arch/sparc/kernel/ktlb.S
+++ b/arch/sparc/kernel/ktlb.S
@@ -153,12 +153,12 @@ kvmap_dtlb_tsb4m_miss:
153 /* Clear the PAGE_OFFSET top virtual bits, shift 153 /* Clear the PAGE_OFFSET top virtual bits, shift
154 * down to get PFN, and make sure PFN is in range. 154 * down to get PFN, and make sure PFN is in range.
155 */ 155 */
156 sllx %g4, 21, %g5 156 sllx %g4, PAGE_OFFSET_VA_BITS, %g5
157 157
158 /* Check to see if we know about valid memory at the 4MB 158 /* Check to see if we know about valid memory at the 4MB
159 * chunk this physical address will reside within. 159 * chunk this physical address will reside within.
160 */ 160 */
161 srlx %g5, 21 + 41, %g2 161 srlx %g5, PAGE_OFFSET_VA_BITS + MAX_PHYS_ADDRESS_BITS, %g2
162 brnz,pn %g2, kvmap_dtlb_longpath 162 brnz,pn %g2, kvmap_dtlb_longpath
163 nop 163 nop
164 164
@@ -176,7 +176,7 @@ valid_addr_bitmap_patch:
176 or %g7, %lo(sparc64_valid_addr_bitmap), %g7 176 or %g7, %lo(sparc64_valid_addr_bitmap), %g7
177 .previous 177 .previous
178 178
179 srlx %g5, 21 + 22, %g2 179 srlx %g5, PAGE_OFFSET_VA_BITS + ILOG2_4MB, %g2
180 srlx %g2, 6, %g5 180 srlx %g2, 6, %g5
181 and %g2, 63, %g2 181 and %g2, 63, %g2
182 sllx %g5, 3, %g5 182 sllx %g5, 3, %g5
@@ -189,9 +189,9 @@ valid_addr_bitmap_patch:
1892: sethi %hi(kpte_linear_bitmap), %g2 1892: sethi %hi(kpte_linear_bitmap), %g2
190 190
191 /* Get the 256MB physical address index. */ 191 /* Get the 256MB physical address index. */
192 sllx %g4, 21, %g5 192 sllx %g4, PAGE_OFFSET_VA_BITS, %g5
193 or %g2, %lo(kpte_linear_bitmap), %g2 193 or %g2, %lo(kpte_linear_bitmap), %g2
194 srlx %g5, 21 + 28, %g5 194 srlx %g5, PAGE_OFFSET_VA_BITS + ILOG2_256MB, %g5
195 and %g5, (32 - 1), %g7 195 and %g5, (32 - 1), %g7
196 196
197 /* Divide by 32 to get the offset into the bitmask. */ 197 /* Divide by 32 to get the offset into the bitmask. */