Do lazy update/reset of the FS.base and %[def]s segment registers: reseting
authorguenther <guenther@openbsd.org>
Mon, 18 May 2015 19:59:27 +0000 (19:59 +0000)
committerguenther <guenther@openbsd.org>
Mon, 18 May 2015 19:59:27 +0000 (19:59 +0000)
commitb13138f26d8f4e65100b2377aab2ba4570a8d014
tree3f892d2e22f5c1f80f7894f2c3c72816aef9aa67
parent3bdb371dc568b419dbc8a837f4df88f00c63711c
Do lazy update/reset of the FS.base and %[def]s segment registers: reseting
segment registers in cpu_switchto if the old thread had made it to userspace
and restoring FS.base only on first return to userspace since context switch.

ok mlarkin@
13 files changed:
sys/arch/amd64/amd64/db_interface.c
sys/arch/amd64/amd64/db_trace.c
sys/arch/amd64/amd64/genassym.cf
sys/arch/amd64/amd64/locore.S
sys/arch/amd64/amd64/machdep.c
sys/arch/amd64/amd64/process_machdep.c
sys/arch/amd64/amd64/sys_machdep.c
sys/arch/amd64/amd64/vector.S
sys/arch/amd64/amd64/vm_machdep.c
sys/arch/amd64/include/cpu.h
sys/arch/amd64/include/frameasm.h
sys/arch/amd64/include/pcb.h
sys/arch/amd64/include/tcb.h