Date: Thu, 6 Apr 2006 21:43:14 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94744 for review Message-ID: <200604062143.k36LhEiE024531@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94744 Change 94744 by kmacy@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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604062143.k36LhEiE024531>