From 11989314dc4a62c82193b6727d33625f2269e511 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 27 Jan 2023 12:43:56 +0200 Subject: [PATCH] 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 395338b4a4b..1b109b48818 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)