Date: Thu, 9 Jul 2009 09:34:11 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/amd64/amd64 cpu_switch.S exception.S genassym.c machdep.c sys_machdep.c vm_machdep.c src/sys/amd64/ia32 ia32_exception.S ia32_reg.c ia32_signal.c src/sys/amd64/include pcb.h src/sys/amd64/linux32 linux32_sysvec.c Message-ID: <200907090934.n699YRs9007144@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-07-09 09:34:11 UTC FreeBSD src repository Modified files: sys/amd64/amd64 cpu_switch.S exception.S genassym.c machdep.c sys_machdep.c vm_machdep.c sys/amd64/ia32 ia32_exception.S ia32_reg.c ia32_signal.c sys/amd64/include pcb.h sys/amd64/linux32 linux32_sysvec.c Log: SVN rev 195486 on 2009-07-09 09:34:11Z by kib Restore the segment registers and segment base MSRs for amd64 syscall return path only when neither thread was context switched while executing syscall code nor syscall explicitely modified LDT or MSRs. Save segment registers in trap handlers before interrupts are enabled, to not allow context switches to happen before registers are saved. Use separated byte in pcb for indication of fast/full return, since pcb_flags are not synchronized with context switches. The change puts back syscall microbenchmark numbers that were slowed down after commit of the support for LDT on amd64. Reviewed by: jeff Tested (and tested, and tested ...) by: pho Approved by: re (kensmith) Revision Changes Path 1.169 +1 -0 src/sys/amd64/amd64/cpu_switch.S 1.139 +19 -9 src/sys/amd64/amd64/exception.S 1.177 +1 -0 src/sys/amd64/amd64/genassym.c 1.705 +4 -0 src/sys/amd64/amd64/machdep.c 1.94 +8 -0 src/sys/amd64/amd64/sys_machdep.c 1.264 +5 -0 src/sys/amd64/amd64/vm_machdep.c 1.7 +7 -5 src/sys/amd64/ia32/ia32_exception.S 1.5 +1 -0 src/sys/amd64/ia32/ia32_reg.c 1.23 +7 -0 src/sys/amd64/ia32/ia32_signal.c 1.72 +2 -1 src/sys/amd64/include/pcb.h 1.52 +5 -0 src/sys/amd64/linux32/linux32_sysvec.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907090934.n699YRs9007144>