summaryrefslogtreecommitdiffstats
path: root/sys/x86/include/fpu.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-09-06 19:39:12 +0000
committerkib <kib@FreeBSD.org>2014-09-06 19:39:12 +0000
commita52df371a93b2ceaa0ee2bf480dfd489185f3e77 (patch)
tree71fd136d18ed666b3f3e7ebf3d5f40f301a141c6 /sys/x86/include/fpu.h
parentb9adc6630bc8e98f06599ee82e8f9ec472111c6d (diff)
downloadFreeBSD-src-a52df371a93b2ceaa0ee2bf480dfd489185f3e77.zip
FreeBSD-src-a52df371a93b2ceaa0ee2bf480dfd489185f3e77.tar.gz
SDM rev. 50 defines the use of the next 8 bytes in the xstate header.
It is the compaction bitmask, with the highest bit defining if compact format of the xsave area is used at all. Adjust the definition of struct xstate_hdr, provide define for bit 63. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'sys/x86/include/fpu.h')
-rw-r--r--sys/x86/include/fpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/x86/include/fpu.h b/sys/x86/include/fpu.h
index ddb17c2..73af34c 100644
--- a/sys/x86/include/fpu.h
+++ b/sys/x86/include/fpu.h
@@ -150,9 +150,11 @@ struct savefpu {
struct xstate_hdr {
uint64_t xstate_bv;
- uint8_t xstate_rsrv0[16];
+ uint64_t xstate_xcomp_bv;
+ uint8_t xstate_rsrv0[8];
uint8_t xstate_rsrv[40];
};
+#define XSTATE_XCOMP_BV_COMPACT (1ULL << 63)
struct savexmm_xstate {
struct xstate_hdr sx_hd;
OpenPOWER on IntegriCloud