From owner-cvs-src@FreeBSD.ORG Wed May 14 17:23:41 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 F2AAF37B401; Wed, 14 May 2003 17:23:40 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D39F43F85; Wed, 14 May 2003 17:23:40 -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 h4F0Ne0U076221; Wed, 14 May 2003 17:23:40 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4F0NebW076220; Wed, 14 May 2003 17:23:40 -0700 (PDT) Message-Id: <200305150023.h4F0NebW076220@repoman.freebsd.org> From: Peter Wemm Date: Wed, 14 May 2003 17:23:40 -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 cpu_switch.S genassym.c machdep.c src/sys/amd64/ia32 ia32_sysvec.c src/sys/amd64/include cpufunc.h pcb.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: Thu, 15 May 2003 00:23:41 -0000 peter 2003/05/14 17:23:40 PDT FreeBSD src repository Modified files: sys/amd64/amd64 cpu_switch.S genassym.c machdep.c sys/amd64/ia32 ia32_sysvec.c sys/amd64/include cpufunc.h pcb.h Log: Collect the nastiness for preserving the kernel MSR_GSBASE around the load_gs() calls into a single place that is less likely to go wrong. Eliminate the per-process context switching of MSR_GSBASE, because it should be constant for a single cpu. Instead, save/restore it during the loading of the new %gs selector for the new process. Approved by: re (amd64/* blanket) Revision Changes Path 1.141 +3 -10 src/sys/amd64/amd64/cpu_switch.S 1.146 +0 -1 src/sys/amd64/amd64/genassym.c 1.578 +1 -8 src/sys/amd64/amd64/machdep.c 1.4 +1 -8 src/sys/amd64/ia32/ia32_sysvec.c 1.136 +36 -0 src/sys/amd64/include/cpufunc.h 1.53 +0 -1 src/sys/amd64/include/pcb.h