From 7dd5178ddd0078d2e1ef38722bff1172f79f0f05 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 17 Nov 2025 22:55:57 -0500 Subject: kern/amd64: mp: Sync MTRRs between APs and BSP Section 11.11.8 of the Intel SDM states that all MTRRs in a multiprocessing system must be synced to prevent undefined behavior. Signed-off-by: Ian Moffett --- sys/inc/arch/amd64/msr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/inc/arch/amd64/msr.h') diff --git a/sys/inc/arch/amd64/msr.h b/sys/inc/arch/amd64/msr.h index e3f8887..c194ec0 100644 --- a/sys/inc/arch/amd64/msr.h +++ b/sys/inc/arch/amd64/msr.h @@ -35,6 +35,10 @@ #define IA32_APIC_BASE 0x0000001B #define IA32_GS_BASE 0xC0000101 +#define IA32_MTRR_CAP 0x000000FE +#define IA32_DEF_TYPE 0x000002FF +#define IA32_MTRR_PHYSBASE 0x00000200 +#define IA32_MTRR_PHYSMASK 0x00000201 #define IA32_KERNEL_GS_BASE 0xC0000102 __always_inline static inline uint64_t -- cgit v1.2.3