1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00
freebsd/sys/amd64
John Baldwin d706ec297a Add a clts() wrapper around the 'clts' instruction to <machine/cpufunc.h>
on x86 and use that to implement stop_emulating() in the fpu/npx code.
Reimplement start_emulating() in the non-XEN case by using load_cr0() and
rcr0() instead of the 'lmsw' and 'smsw' instructions.  Intel explicitly
discourages the use of 'lmsw' and 'smsw' on 80386 and later processors in
the description of these instructions in Volume 2 of the ADM.

Reviewed by:	kib
MFC after:	1 month
2012-07-09 20:55:39 +00:00
..
acpica
amd64 Add a clts() wrapper around the 'clts' instruction to <machine/cpufunc.h> 2012-07-09 20:55:39 +00:00
compile
conf
ia32
include Add a clts() wrapper around the 'clts' instruction to <machine/cpufunc.h> 2012-07-09 20:55:39 +00:00
linux32
pci
Makefile