Date: Sun, 16 May 2004 15:43:57 -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 src/sys/amd64/include pcb.h Message-ID: <200405162243.i4GMhvhh037147@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 2004/05/16 15:43:57 PDT
FreeBSD src repository
Modified files:
sys/amd64/amd64 cpu_switch.S genassym.c
sys/amd64/include pcb.h
Log:
Checkpoint some of what I was starting to tinker with for having some
different context support for 32 vs 64 bit processes. This simply omits
the save/restore of the segment selector registers for non 32 bit
processes. This avoids the rdmsr/rwmsr juggling when restoring %gs
clobbers the kernel msr that holds the gsbase.
However, I suspect it might be better to conditionally do this at
user<->kernel transition where we wouldn't need to do the juggling in the
first place. Or have per-thread extended context save/restore hooks.
Revision Changes Path
1.150 +18 -7 src/sys/amd64/amd64/cpu_switch.S
1.154 +1 -0 src/sys/amd64/amd64/genassym.c
1.59 +1 -0 src/sys/amd64/include/pcb.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405162243.i4GMhvhh037147>
