]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 238311:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Aug 2012 18:03:03 +0000 (18:03 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Aug 2012 18:03:03 +0000 (18:03 +0000)
commit6e3a33af26753925ded8f96b451bcfd5baa64f11
tree21c725122aa3ff6af8faa588ef1c218a03964e1b
parent0cebbd0a7cfd40db402acf6d15f8ca4038e69622
MFC 238311:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/amd64/amd64/fpu.c
sys/amd64/include/cpufunc.h
sys/i386/include/cpufunc.h
sys/i386/isa/npx.c