From owner-svn-src-projects@FreeBSD.ORG Fri Jun 5 08:37:12 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 315D4106564A; Fri, 5 Jun 2009 08:37:12 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1FCA18FC1C; Fri, 5 Jun 2009 08:37:12 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n558bBc8019140; Fri, 5 Jun 2009 08:37:11 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n558bBNE019139; Fri, 5 Jun 2009 08:37:11 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <200906050837.n558bBNE019139@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Fri, 5 Jun 2009 08:37:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193487 - projects/mips/sys/mips/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 08:37:12 -0000 Author: gonzo Date: Fri Jun 5 08:37:11 2009 New Revision: 193487 URL: http://svn.freebsd.org/changeset/base/193487 Log: - Use restoreintr instead of enableint while accessing pcpu in DO_AST Modified: projects/mips/sys/mips/include/asm.h Modified: projects/mips/sys/mips/include/asm.h ============================================================================== --- projects/mips/sys/mips/include/asm.h Fri Jun 5 07:57:10 2009 (r193486) +++ projects/mips/sys/mips/include/asm.h Fri Jun 5 08:37:11 2009 (r193487) @@ -311,13 +311,14 @@ _C_LABEL(x): la s0, _C_LABEL(disableintr) ;\ jalr s0 ;\ nop ;\ + move a0, v0 ;\ GET_CPU_PCPU(s1) ;\ lw s3, PC_CURPCB(s1) ;\ lw s1, PC_CURTHREAD(s1) ;\ lw s2, TD_FLAGS(s1) ;\ li s0, TDF_ASTPENDING | TDF_NEEDRESCHED;\ and s2, s0 ;\ - la s0, _C_LABEL(enableintr) ;\ + la s0, _C_LABEL(restoreintr) ;\ jalr s0 ;\ nop ;\ beq s2, zero, 4f ;\