diff options
Diffstat (limited to 'arch/sparc64/kernel/trampoline.S')
-rw-r--r-- | arch/sparc64/kernel/trampoline.S | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/sparc64/kernel/trampoline.S b/arch/sparc64/kernel/trampoline.S index 9478551cb020..782d8c4973e4 100644 --- a/arch/sparc64/kernel/trampoline.S +++ b/arch/sparc64/kernel/trampoline.S | |||
@@ -295,39 +295,6 @@ do_unlock: | |||
295 | wrpr %g5, %tba | 295 | wrpr %g5, %tba |
296 | mov %o2, %g6 | 296 | mov %o2, %g6 |
297 | 297 | ||
298 | wrpr %o1, PSTATE_MG, %pstate | ||
299 | #define KERN_HIGHBITS ((_PAGE_VALID|_PAGE_SZ4MB)^0xfffff80000000000) | ||
300 | #define KERN_LOWBITS (_PAGE_CP | _PAGE_CV | _PAGE_P | _PAGE_W) | ||
301 | |||
302 | mov TSB_REG, %g1 | ||
303 | stxa %g0, [%g1] ASI_DMMU | ||
304 | membar #Sync | ||
305 | mov TLB_SFSR, %g1 | ||
306 | sethi %uhi(KERN_HIGHBITS), %g2 | ||
307 | or %g2, %ulo(KERN_HIGHBITS), %g2 | ||
308 | sllx %g2, 32, %g2 | ||
309 | or %g2, KERN_LOWBITS, %g2 | ||
310 | |||
311 | BRANCH_IF_ANY_CHEETAH(g3,g7,9f) | ||
312 | |||
313 | ba,pt %xcc, 1f | ||
314 | nop | ||
315 | |||
316 | 9: | ||
317 | sethi %uhi(VPTE_BASE_CHEETAH), %g3 | ||
318 | or %g3, %ulo(VPTE_BASE_CHEETAH), %g3 | ||
319 | ba,pt %xcc, 2f | ||
320 | sllx %g3, 32, %g3 | ||
321 | 1: | ||
322 | sethi %uhi(VPTE_BASE_SPITFIRE), %g3 | ||
323 | or %g3, %ulo(VPTE_BASE_SPITFIRE), %g3 | ||
324 | sllx %g3, 32, %g3 | ||
325 | |||
326 | 2: | ||
327 | clr %g7 | ||
328 | #undef KERN_HIGHBITS | ||
329 | #undef KERN_LOWBITS | ||
330 | |||
331 | wrpr %o1, 0x0, %pstate | 298 | wrpr %o1, 0x0, %pstate |
332 | ldx [%g6 + TI_TASK], %g4 | 299 | ldx [%g6 + TI_TASK], %g4 |
333 | 300 | ||