From owner-p4-projects@FreeBSD.ORG Tue Jun 15 08:09:42 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0EB5E16A4D0; Tue, 15 Jun 2004 08:09:42 +0000 (GMT) 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 D45A516A4CF for ; Tue, 15 Jun 2004 08:09:41 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B56C743D58 for ; Tue, 15 Jun 2004 08:09:41 +0000 (GMT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5F89Sqi081843 for ; Tue, 15 Jun 2004 08:09:28 GMT (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5F89Sb3081840 for perforce@freebsd.org; Tue, 15 Jun 2004 08:09:28 GMT (envelope-from jmallett@freebsd.org) Date: Tue, 15 Jun 2004 08:09:28 GMT Message-Id: <200406150809.i5F89Sb3081840@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 54995 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 08:09:42 -0000 http://perforce.freebsd.org/chv.cgi?CH=54995 Change 54995 by jmallett@jmallett_oingo on 2004/06/15 08:09:01 Up critical section on the running thread before dispatching an interrupt, it may result in a context switch, and we need to avoid that if we're already in a critical section. Affected files ... .. //depot/projects/mips/sys/mips/mips/trap.c#23 edit Differences ... ==== //depot/projects/mips/sys/mips/mips/trap.c#23 (text+ko) ==== @@ -119,7 +119,9 @@ goto done; case TrInt: /*platform_trap_exit();*/ + critical_enter(); platform_intr(tf); + critical_exit(); goto done; case TrAdEL: case TrDBE: