freebsd-skq/sys/i386/isa
Konstantin Belousov b24de3ac40 Provide npx_get_fsave(9) and npx_set_fsave(9) functions to obtain and
restore the FPU state from the format of machine FSAVE area.  The
intended use is for ABI emulators to provide FSAVE-formatted FPU state
to usermode requiring it, while kernel could use FXSAVE due to
XMM/XSAVE.

The core functionality to convert from/to FXSAVE format is shared with
the fill_fpregs_xmm() and set_fpregs_xmm().  Move the later functions
to npx.c and rename them to npx_fill_fpregs_xmm() and
npx_set_fpregs_xmm().  They differ from nptx_get/set_fsave(9) since
our mcontext contains padding to be zeroed or ignored.

fill_fpregs() and set_fpregs() could be converted to use the new
interface, but there are small differences to handle.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-06-29 12:06:36 +00:00
..
ccbque.h
elink.c Revert previous commit... 2012-10-10 08:36:38 +00:00
elink.h
npx.c Provide npx_get_fsave(9) and npx_set_fsave(9) functions to obtain and 2015-06-29 12:06:36 +00:00
pmtimer.c Locking for todr got pushed down into inittodr and the client 2013-02-21 07:16:40 +00:00
prof_machdep.c
spic.c Lock spic(4) and mark it MPSAFE: 2014-11-20 20:24:30 +00:00
spicreg.h