Set the normal global pcb register when context switching.
This commit is contained in:
parent
01cad5de12
commit
79dba4cb34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89043
@ -110,6 +110,8 @@ ENTRY(cpu_switch)
|
||||
stx %o0, [PCPU(CURTHREAD)]
|
||||
stx %o1, [PCPU(CURPCB)]
|
||||
|
||||
wrpr %g0, PSTATE_NORMAL, %pstate
|
||||
mov %o1, PCB_REG
|
||||
wrpr %g0, PSTATE_ALT, %pstate
|
||||
mov %o1, PCB_REG
|
||||
wrpr %g0, PSTATE_KERNEL, %pstate
|
||||
|
@ -110,6 +110,8 @@ ENTRY(cpu_switch)
|
||||
stx %o0, [PCPU(CURTHREAD)]
|
||||
stx %o1, [PCPU(CURPCB)]
|
||||
|
||||
wrpr %g0, PSTATE_NORMAL, %pstate
|
||||
mov %o1, PCB_REG
|
||||
wrpr %g0, PSTATE_ALT, %pstate
|
||||
mov %o1, PCB_REG
|
||||
wrpr %g0, PSTATE_KERNEL, %pstate
|
||||
|
Loading…
Reference in New Issue
Block a user