:: commit 98309f6bb74a3b4887e56627dec155339ed0746e

mintsuki <mintsuki@protonmail.com> — 2023-09-20 05:09

parents: da0378cce6

smp: Fix up x86 trampoline TLB clearing to use non clobbered register

diff --git a/common/sys/smp_trampoline.asm_x86 b/common/sys/smp_trampoline.asm_x86
index 928b315c..6b00f1d1 100644
--- a/common/sys/smp_trampoline.asm_x86
+++ b/common/sys/smp_trampoline.asm_x86
@@ -169,8 +169,8 @@ parking64:
 
   .out:
     ; Clear TLB
-    mov rax, cr3
-    mov cr3, rax
+    mov rbx, cr3
+    mov cr3, rbx
 
     mov rsp, qword [rdi + 8]
     push 0
tab: 248 wrap: offon