Handle swapgs in interrupts and scheduling
All checks were successful
Build documentation / build-and-deploy (push) Successful in 29s

This commit is contained in:
2026-01-01 18:42:53 +01:00
parent 3bcbdb5ec4
commit 5e6bdcc52d
5 changed files with 24 additions and 8 deletions

View File

@@ -20,5 +20,11 @@ amd64_do_sched:
movq %rsi, %cr3
movq %rdi, %rsp
pop_regs
movq 144(%rsp), %rax
testb $3, %al
jz 1f
swapgs
1:
add $16, %rsp
iretq