Fix stack alignment

This commit is contained in:
2025-11-24 17:04:33 +01:00
parent 2faad79559
commit 3f3795df3c
3 changed files with 7 additions and 3 deletions

View File

@ -66,7 +66,9 @@
_push_regs
cld
movq %rsp, %rdi
sub $0x8, %rsp
call intr_handleintr
add $0x8, %rsp
_pop_regs
add $0x10, %rsp
iretq

View File

@ -2,10 +2,7 @@
.global proc_switch
proc_switch:
testq %rsi, %rsi
je 1f
movq %rsi, %cr3
1:
mov %rdi, %rsp
_pop_regs
add $0x10, %rsp