From 9f718b57b846b8e1fa562584747fdae42ffed8f4 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 24 Oct 2024 02:40:01 +0300 Subject: [PATCH] x86 specialreg: add bit masks definitions for LASS and LAM features in CPUID Structured Extended Features %eax 0x7 leaf 1 %eax, from Intel SDM vol. 2 rev. 085. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/x86/include/specialreg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index ab172ec54ff..51c513b6a5a 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -534,6 +534,12 @@ #define CPUID_STDEXT3_CORE_CAP 0x40000000 #define CPUID_STDEXT3_SSBD 0x80000000 +/* + * CPUID instruction 7 Structured Extended Features, leaf 1 eax info + */ +#define CPUID_STDEXT4_LASS 0x00000040 +#define CPUID_STDEXT4_LAM 0x04000000 + /* CPUID_HYBRID_ID leaf 0x1a */ #define CPUID_HYBRID_CORE_MASK 0xff000000 #define CPUID_HYBRID_SMALL_CORE 0x20000000