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

Peter Wemm peter at FreeBSD.org
Wed May 14 17:23:41 PDT 2003


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


More information about the cvs-src mailing list