Set the normal global pcb register when context switching.

This commit is contained in:
Jake Burkholder 2002-01-08 05:10:07 +00:00
parent 01cad5de12
commit 79dba4cb34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89043
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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