From owner-cvs-all@FreeBSD.ORG Thu May 8 01:25:52 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E88937B401; Thu, 8 May 2003 01:25:52 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 321AF43FBD; Thu, 8 May 2003 01:25:52 -0700 (PDT) (envelope-from peter@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 h488Pq0U021877; Thu, 8 May 2003 01:25:52 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h488Pp79021876; Thu, 8 May 2003 01:25:51 -0700 (PDT) Message-Id: <200305080825.h488Pp79021876@repoman.freebsd.org> From: Peter Wemm Date: Thu, 8 May 2003 01:25:51 -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/amd64/amd64 machdep.c trap.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 08:25:53 -0000 peter 2003/05/08 01:25:51 PDT FreeBSD src repository Modified files: sys/amd64/amd64 machdep.c trap.c Log: Oops. Turn T_PAGEFLT back into an interrupt gate. It is *critical* that interrupts be disabled and remain disabled until %cr2 is read. Otherwise we can preempt and another process can fault, and by the time we read %cr2, we see a different processes fault address. This Greatly Confuses vm_fault() (to say the least). The i386 port has got this marked as a bug workaround for a Cyrix CPU, which is what lead me astray. Its actually necessary for preemption, regardless of whether Cyrix cpus had a bug or not. Revision Changes Path 1.568 +1 -1 src/sys/amd64/amd64/machdep.c 1.253 +9 -1 src/sys/amd64/amd64/trap.c