Date: Wed, 14 May 2003 17:23:40 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org 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 Message-ID: <200305150023.h4F0NebW076220@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305150023.h4F0NebW076220>
