diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-08 03:08:23 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:12:00 -0500 |
commit | ac29c11d4cd4fa1fac968e99998a956405732f2f (patch) | |
tree | cc733e3bd63af7b35a50d11455b7d5b2fc9ff1e9 /arch/sparc64/kernel/trampoline.S | |
parent | e088ad7ca3d09c96e63f1ce411a2ccba2688bf25 (diff) |
[SPARC64]: Allocate and register the 4 sun4v mondo queues at bootup.
Needs to occur before we enable PSTATE_IE in %pstate.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/trampoline.S')
-rw-r--r-- | arch/sparc64/kernel/trampoline.S | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/trampoline.S b/arch/sparc64/kernel/trampoline.S index d9e2af35158d..fbf844f84a49 100644 --- a/arch/sparc64/kernel/trampoline.S +++ b/arch/sparc64/kernel/trampoline.S | |||
@@ -309,7 +309,17 @@ do_unlock: | |||
309 | 309 | ||
310 | call init_irqwork_curcpu | 310 | call init_irqwork_curcpu |
311 | nop | 311 | nop |
312 | call init_cur_cpu_trap | 312 | |
313 | sethi %hi(tlb_type), %g3 | ||
314 | lduw [%g3 + %lo(tlb_type)], %g2 | ||
315 | cmp %g2, 3 | ||
316 | bne,pt %icc, 1f | ||
317 | nop | ||
318 | |||
319 | call sun4v_init_mondo_queues | ||
320 | nop | ||
321 | |||
322 | 1: call init_cur_cpu_trap | ||
313 | nop | 323 | nop |
314 | 324 | ||
315 | /* Start using proper page size encodings in ctx register. */ | 325 | /* Start using proper page size encodings in ctx register. */ |