kernel/x86_64: align the stack before calling the function
in arch_debug_call_with_fault_handler Change-Id: Iddefb7e93d561f3a6ccf1ee06328e473b28fca2a Reviewed-on: https://review.haiku-os.org/c/haiku/+/6918 Reviewed-by: Jérôme Duval <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
91ef2c3c00
commit
4f0173cdb0
@@ -87,6 +87,8 @@ FUNCTION(arch_debug_call_with_fault_handler):
|
||||
|
||||
// Preserve the jump buffer address for the fault return.
|
||||
push %rsi
|
||||
// Align the stack before calling the function.
|
||||
subq $8, %rsp
|
||||
|
||||
// Set fault handler address, and fault handler stack pointer address. We
|
||||
// don't need to save the previous values, since that's done by the caller.
|
||||
|
||||
Reference in New Issue
Block a user