sparc/shared/irq_asm.S: Get pointer to self per-CPU control

_CPU_Context_switch_to_first_task_smp() branches to
done_flushing which requires o3 to be initalized with
"self per-CPU control", this adds initialization of
o3. This problem only affects SMP, see commit
f8ad6c6f7f were usage of o3 was intruduced.
This commit is contained in:
Daniel Hellstrom
2013-11-30 09:28:28 -06:00
committed by Joel Sherrill
parent 7de5ef5f83
commit 2d3eb23349

View File

@@ -265,6 +265,7 @@ SYM(_CPU_Context_switch_to_first_task_smp):
and %g1, SPARC_NUMBER_OF_REGISTER_WINDOWS - 1, %g3
nop
mov %o0, %o1 ! in the delay slot
GET_SELF_CPU_CONTROL %o3, %o4
ba,a done_flushing
#endif