From owner-p4-projects@FreeBSD.ORG Thu Apr 6 21:43:15 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2FB5016A407; Thu, 6 Apr 2006 21:43:15 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5A2516A405 for ; Thu, 6 Apr 2006 21:43:14 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B027243D46 for ; Thu, 6 Apr 2006 21:43:14 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k36LhEZD024534 for ; Thu, 6 Apr 2006 21:43:14 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k36LhEiE024531 for perforce@freebsd.org; Thu, 6 Apr 2006 21:43:14 GMT (envelope-from kmacy@freebsd.org) Date: Thu, 6 Apr 2006 21:43:14 GMT Message-Id: <200604062143.k36LhEiE024531@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 94744 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 21:43:15 -0000 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. */