kernel/x86_64: align the stack before calling user_debug_pre_syscall

Fixes #17531

Change-Id: Ia406ca15438bb2b432e9ebbe9f6db074f973af95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5113
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2022-03-21 19:24:20 +00:00
committed by waddlesplash
parent f0a8e7e247
commit 168f941be5
+2 -1
View File
@@ -505,10 +505,11 @@ FUNCTION(x86_64_syscall_entry):
push IFRAME_di(%rbp)
movq %r14, %rdi // syscall number
movq %rsp, %rsi
subq $8, %rsp
push %rax
call user_debug_pre_syscall
pop %rax
addq $48, %rsp
addq $56, %rsp
jmp .Lpre_syscall_debug_done
.Lpost_syscall_work: