diff options
Diffstat (limited to 'arch/sparc64/kernel/trampoline.S')
-rw-r--r-- | arch/sparc64/kernel/trampoline.S | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/trampoline.S b/arch/sparc64/kernel/trampoline.S index 782d8c4973e4..18c333f841e3 100644 --- a/arch/sparc64/kernel/trampoline.S +++ b/arch/sparc64/kernel/trampoline.S | |||
@@ -287,21 +287,18 @@ do_unlock: | |||
287 | wrpr %g0, 0, %wstate | 287 | wrpr %g0, 0, %wstate |
288 | wrpr %g0, 0, %tl | 288 | wrpr %g0, 0, %tl |
289 | 289 | ||
290 | /* Setup the trap globals, then we can resurface. */ | 290 | /* Load TBA, then we can resurface. */ |
291 | rdpr %pstate, %o1 | ||
292 | mov %g6, %o2 | ||
293 | wrpr %o1, PSTATE_AG, %pstate | ||
294 | sethi %hi(sparc64_ttable_tl0), %g5 | 291 | sethi %hi(sparc64_ttable_tl0), %g5 |
295 | wrpr %g5, %tba | 292 | wrpr %g5, %tba |
296 | mov %o2, %g6 | ||
297 | 293 | ||
298 | wrpr %o1, 0x0, %pstate | ||
299 | ldx [%g6 + TI_TASK], %g4 | 294 | ldx [%g6 + TI_TASK], %g4 |
300 | 295 | ||
301 | wrpr %g0, 0, %wstate | 296 | wrpr %g0, 0, %wstate |
302 | 297 | ||
303 | call init_irqwork_curcpu | 298 | call init_irqwork_curcpu |
304 | nop | 299 | nop |
300 | call init_cur_cpu_trap | ||
301 | nop | ||
305 | 302 | ||
306 | /* Start using proper page size encodings in ctx register. */ | 303 | /* Start using proper page size encodings in ctx register. */ |
307 | sethi %hi(sparc64_kern_pri_context), %g3 | 304 | sethi %hi(sparc64_kern_pri_context), %g3 |