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:
committed by
waddlesplash
parent
f0a8e7e247
commit
168f941be5
@@ -505,10 +505,11 @@ FUNCTION(x86_64_syscall_entry):
|
|||||||
push IFRAME_di(%rbp)
|
push IFRAME_di(%rbp)
|
||||||
movq %r14, %rdi // syscall number
|
movq %r14, %rdi // syscall number
|
||||||
movq %rsp, %rsi
|
movq %rsp, %rsi
|
||||||
|
subq $8, %rsp
|
||||||
push %rax
|
push %rax
|
||||||
call user_debug_pre_syscall
|
call user_debug_pre_syscall
|
||||||
pop %rax
|
pop %rax
|
||||||
addq $48, %rsp
|
addq $56, %rsp
|
||||||
jmp .Lpre_syscall_debug_done
|
jmp .Lpre_syscall_debug_done
|
||||||
|
|
||||||
.Lpost_syscall_work:
|
.Lpost_syscall_work:
|
||||||
|
|||||||
Reference in New Issue
Block a user