Handle %gs like %[def]s and reset set it in cpu_switchto() instead of on
authorguenther <guenther@openbsd.org>
Sat, 6 Jan 2018 22:03:12 +0000 (22:03 +0000)
committerguenther <guenther@openbsd.org>
Sat, 6 Jan 2018 22:03:12 +0000 (22:03 +0000)
commit99c808796a066e7c812944b4a61ac839ccc33170
tree85122eb5f1afc6a9959f0b323233aff84213cb03
parente36e7d99e64b9791877b11b1efc3ef24a1876eb7
Handle %gs like %[def]s and reset set it in cpu_switchto() instead of on
every return to userspace.

ok kettenis@ mlarkin@
sys/arch/amd64/amd64/locore.S
sys/arch/amd64/amd64/machdep.c
sys/arch/amd64/include/frameasm.h