Skip to content

Commit

Permalink
smp/x86: Trampoline: clear TLB before jumping to kernel code
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Sep 16, 2023
1 parent db04cd2 commit ca7fb97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/sys/smp_trampoline.asm_x86
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ parking64:
jmp .loop

.out:
; Clear TLB
mov rax, cr3
mov cr3, rax

mov rsp, qword [rdi + 8]
push 0
push rax
Expand Down

0 comments on commit ca7fb97

Please sign in to comment.