PERFORCE change 94744 for review
Kip Macy
kmacy at FreeBSD.org
Thu Apr 6 21:43:15 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=94744
Change 94744 by kmacy at kmacy_storage:sun4v_rwbuf on 2006/04/06 21:42:41
no frobbing interrupts during context switch
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/swtch.S#17 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/swtch.S#17 (text+ko) ====
@@ -117,14 +117,12 @@
stx %g3, [%g1 + KTR_PARM3]
9:
#endif
- wrpr %g0, PSTATE_NORMAL, %pstate
ldx [%i0 + TD_PCB], %i1
stx %i0, [PCPU(CURTHREAD)]
stx %i1, [PCPU(CURPCB)]
mov %i1, PCB_REG ! load in new PCB
- wrpr %g0, PSTATE_KERNEL, %pstate
ldx [PCB_REG + PCB_SP], %fp
ldx [PCB_REG + PCB_PC], %i7
@@ -158,7 +156,7 @@
ldx [%i2 + PM_CONTEXT], %l5 ! new context
ldx [%l2 + PM_CONTEXT], %l3 ! old context
cmp %g0, %l5
- be,a,pn %xcc, 5f ! new context == kernel?
+ be,pn %xcc, 5f ! new context == kernel?
lduw [PCPU(CPUMASK)], %l4
brz %l3, 10f ! old context == kernel?
@@ -217,7 +215,6 @@
SET_MMU_CONTEXT(%l6, %l5)
-
/*
* Done. Return and load the new process's window from the stack.
*/
More information about the p4-projects
mailing list