diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-17 22:55:57 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-17 22:55:57 -0500 |
| commit | 7dd5178ddd0078d2e1ef38722bff1172f79f0f05 (patch) | |
| tree | 741a616624d139dc110a9d094557a55d25b18dee /sys/inc | |
| parent | 7fa5a5a0f0a5328d9dfe0d72c5de0e8d0808d01a (diff) | |
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 <ian@osmora.org>
Diffstat (limited to 'sys/inc')
| -rw-r--r-- | sys/inc/arch/amd64/msr.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
