Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2024 18:16:37 GMT
From:      Bojan =?utf-8?Q?Novkovi=C4=87?= <bnovkov@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b42b18fb24f5 - main - x86: Add definitions for XSAVE state component information
Message-ID:  <202411261816.4AQIGb8w074743@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bnovkov:

URL: https://cgit.FreeBSD.org/src/commit/?id=b42b18fb24f58d9b3d8b60d6901e582d407521d6

commit b42b18fb24f58d9b3d8b60d6901e582d407521d6
Author:     Bojan Novković <bnovkov@FreeBSD.org>
AuthorDate: 2024-11-26 17:48:46 +0000
Commit:     Bojan Novković <bnovkov@FreeBSD.org>
CommitDate: 2024-11-26 18:16:05 +0000

    x86: Add definitions for XSAVE state component information
    
    Reviewed by: kib
---
 sys/x86/include/specialreg.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h
index 51c513b6a5ab..9dc30e31e540 100644
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -386,6 +386,14 @@
 #define	CPUID_EXTSTATE_XINUSE	0x00000004
 #define	CPUID_EXTSTATE_XSAVES	0x00000008
 
+/*
+ * CPUID instruction 0xd Processor Extended State Enumeration
+ * Sub-leaf > 1 ecx info
+ */
+#define	CPUID_EXTSTATE_SUPERVISOR	0x00000001
+#define	CPUID_EXTSTATE_ALIGNED		0x00000002
+#define	CPUID_EXTSTATE_XFD_SUPPORTED	0x00000004
+
 /*
  * AMD extended function 8000_0007h ebx info
  */



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