:: commit e03019b8544d88f86b1fa86f16073641a32c4fdc

mintsuki <mintsuki@protonmail.com> — 2023-08-21 23:38

parents: 3d0580bc5f

smp: Set up PAT properly on APs

diff --git a/common/sys/smp_trampoline.asm_x86 b/common/sys/smp_trampoline.asm_x86
index aa95202f..e23b2e30 100644
--- a/common/sys/smp_trampoline.asm_x86
+++ b/common/sys/smp_trampoline.asm_x86
@@ -39,6 +39,11 @@ smp_trampoline_start:
     xor eax, eax
     mov cr4, eax
 
+    mov ecx, 0x277
+    rdmsr
+    mov edx, 0x0105
+    wrmsr
+
     test dword [ebx + (passed_info.target_mode - smp_trampoline_start)], (1 << 2)
     jz .nox2apic
 
tab: 248 wrap: offon