git: 11989314dc4a - main - x86: add more definitions for XCR0 bits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Jan 2023 17:45:13 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=11989314dc4a62c82193b6727d33625f2269e511
commit 11989314dc4a62c82193b6727d33625f2269e511
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-01-27 10:43:56 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-01-27 17:44:49 +0000
x86: add more definitions for XCR0 bits
This covers all currently defined bits, adding PKRU and TILE.
Reviewed by: jhb, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D38219
---
sys/x86/include/specialreg.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h
index 395338b4a4b4..1b109b48818b 100644
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -108,6 +108,9 @@
#define XFEATURE_ENABLED_OPMASK 0x00000020
#define XFEATURE_ENABLED_ZMM_HI256 0x00000040
#define XFEATURE_ENABLED_HI16_ZMM 0x00000080
+#define XFEATURE_ENABLED_PKRU 0x00000200
+#define XFEATURE_ENABLED_TILECONFIG 0x00020000
+#define XFEATURE_ENABLED_TILEDATA 0x00040000
#define XFEATURE_AVX \
(XFEATURE_ENABLED_X87 | XFEATURE_ENABLED_SSE | XFEATURE_ENABLED_AVX)