diff options
Diffstat (limited to 'arch/sparc64/kernel/trampoline.S')
-rw-r--r-- | arch/sparc64/kernel/trampoline.S | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/trampoline.S b/arch/sparc64/kernel/trampoline.S index c476f5b321fb..88382200c7b8 100644 --- a/arch/sparc64/kernel/trampoline.S +++ b/arch/sparc64/kernel/trampoline.S | |||
@@ -389,10 +389,35 @@ after_lock_tlb: | |||
389 | or %o1, PSTATE_IE, %o1 | 389 | or %o1, PSTATE_IE, %o1 |
390 | wrpr %o1, 0, %pstate | 390 | wrpr %o1, 0, %pstate |
391 | 391 | ||
392 | call prom_set_trap_table | 392 | sethi %hi(is_sun4v), %o0 |
393 | lduw [%o0 + %lo(is_sun4v)], %o0 | ||
394 | brz,pt %o0, 1f | ||
395 | nop | ||
396 | |||
397 | TRAP_LOAD_TRAP_BLOCK(%g2, %g3) | ||
398 | add %g2, TRAP_PER_CPU_FAULT_INFO, %g2 | ||
399 | stxa %g2, [%g0] ASI_SCRATCHPAD | ||
400 | |||
401 | /* Compute physical address: | ||
402 | * | ||
403 | * paddr = kern_base + (mmfsa_vaddr - KERNBASE) | ||
404 | */ | ||
405 | sethi %hi(KERNBASE), %g3 | ||
406 | sub %g2, %g3, %g2 | ||
407 | sethi %hi(kern_base), %g3 | ||
408 | ldx [%g3 + %lo(kern_base)], %g3 | ||
409 | add %g2, %g3, %o1 | ||
410 | |||
411 | call prom_set_trap_table_sun4v | ||
412 | sethi %hi(sparc64_ttable_tl0), %o0 | ||
413 | |||
414 | ba,pt %xcc, 2f | ||
415 | nop | ||
416 | |||
417 | 1: call prom_set_trap_table | ||
393 | sethi %hi(sparc64_ttable_tl0), %o0 | 418 | sethi %hi(sparc64_ttable_tl0), %o0 |
394 | 419 | ||
395 | call smp_callin | 420 | 2: call smp_callin |
396 | nop | 421 | nop |
397 | call cpu_idle | 422 | call cpu_idle |
398 | mov 0, %o0 | 423 | mov 0, %o0 |