From owner-cvs-src@FreeBSD.ORG Sun May 18 21:16:31 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55E4337B401; Sun, 18 May 2003 21:16:31 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0415243F3F; Sun, 18 May 2003 21:16:31 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4J4GU0U049723; Sun, 18 May 2003 21:16:30 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4J4GUpV049722; Sun, 18 May 2003 21:16:30 -0700 (PDT) Message-Id: <200305190416.h4J4GUpV049722@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 18 May 2003 21:16:30 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ia64/ia64 machdep.c pmap.c src/sys/ia64/include pmap.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2003 04:16:31 -0000 marcel 2003/05/18 21:16:30 PDT FreeBSD src repository Modified files: sys/ia64/ia64 machdep.c pmap.c sys/ia64/include pmap.h Log: pmap_install() needs to be atomic WRT to context switching. Protect switching user regions (region 0-4) with schedlock. Avoid unnecessary recursion on schedlock by moving the core functionality to another function (pmap_switch()) where we assert schedlock is held. Turn pmap_install() into a wrapper that grabs schedlock. This minimizes the number of callsites that need to be changed. Since we already have schedlock in cpu_switch() and cpu_throw(), have them call pmap_switch() directly. These were also the only two calls to pmap_install() outside pmap.c, so make pmap_install() static and remove its prototype from pmap.h Approved by: re (blanket) Revision Changes Path 1.133 +6 -3 src/sys/ia64/ia64/machdep.c 1.103 +31 -32 src/sys/ia64/ia64/pmap.c 1.14 +1 -1 src/sys/ia64/include/pmap.h