Kernel: Cleanup stack alignment assembly

This commit is contained in:
2025-04-20 16:55:18 +03:00
parent 265b4c2b22
commit 99fc7817c6
2 changed files with 6 additions and 8 deletions

View File

@@ -27,14 +27,13 @@ signal_trampoline:
movq 120(%rsp), %rax
// align stack to 16 bytes
movq %rsp, %rbx
andq $0x0F, %rbx
subq %rbx, %rsp
movq %rsp, %rbp
andq $-16, %rsp
call *%rax
// restore stack
addq %rbx, %rsp
movq %rbp, %rsp
popq %r15
popq %r14
popq %r13