Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Sep 2014 19:39:12 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271206 - head/sys/x86/include
Message-ID:  <201409061939.s86JdCWf080409@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Sep  6 19:39:12 2014
New Revision: 271206
URL: http://svnweb.freebsd.org/changeset/base/271206

Log:
  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

Modified:
  head/sys/x86/include/fpu.h

Modified: head/sys/x86/include/fpu.h
==============================================================================
--- head/sys/x86/include/fpu.h	Sat Sep  6 19:38:40 2014	(r271205)
+++ head/sys/x86/include/fpu.h	Sat Sep  6 19:39:12 2014	(r271206)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409061939.s86JdCWf080409>