git: d504e582a9db - stable/15 - x86: add definitions for the CORE_CAP and MEMORY_CTL MSRs

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 28 Sep 2026 01:04:52 UTC
The branch stable/15 has been updated by kib:

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

commit d504e582a9dbb057000e76195aa76e7d6686e667
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-09-18 14:33:54 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-09-28 01:03:27 +0000

    x86: add definitions for the CORE_CAP and MEMORY_CTL MSRs
    
    (cherry picked from commit 9aa031eb927720e26c8c11ce697f1c691ca0ef75)
---
 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 dbd0e25639f9..41ca638152d3 100644
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -574,10 +574,16 @@
 #define	IA32_ARCH_CAP_TSX_CTRL	0x00000080
 #define	IA32_ARCH_CAP_TAA_NO	0x00000100
 
+/* MSR IA32_CORE_CAP bits (platform) */
+#define	IA32_CORE_CAP_SPLITLOCK	0x00000020
+
 /* MSR IA32_TSX_CTRL bits */
 #define	IA32_TSX_CTRL_RTM_DISABLE	0x00000001
 #define	IA32_TSX_CTRL_TSX_CPUID_CLEAR	0x00000002
 
+/* MSR MEMORY_CTL platform bits */
+#define	MSR_MEMORY_CTL_SPLITLOCK	0x20000000
+
 /*
  * CPUID manufacturers identifiers
  */
@@ -606,6 +612,7 @@
 #define	MSR_APICBASE		0x01b
 #define	MSR_EBL_CR_POWERON	0x02a
 #define	MSR_TEST_CTL		0x033
+#define	MSR_MEMORY_CTL		0x033	/* Platform, same index as TEST */
 #define	MSR_IA32_FEATURE_CONTROL 0x03a
 #define	MSR_IA32_SPEC_CTRL	0x048
 #define	MSR_IA32_PRED_CMD	0x049
@@ -617,6 +624,7 @@
 #define	MSR_PERFCTR0		0x0c1
 #define	MSR_PERFCTR1		0x0c2
 #define	MSR_PLATFORM_INFO	0x0ce
+#define	MSR_IA32_CORE_CAP	0x0cf
 #define	MSR_MPERF		0x0e7
 #define	MSR_APERF		0x0e8
 #define	MSR_IA32_EXT_CONFIG	0x0ee	/* Undocumented. Core Solo/Duo only */