cvs commit: src/sys/amd64/amd64 cpu_switch.S genassym.c
src/sys/amd64/include pcb.h
Peter Wemm
peter at FreeBSD.org
Sun May 16 15:43:58 PDT 2004
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
More information about the cvs-src
mailing list