kernel/x86_64: make sure stack is properly aligned in syscalls

Operating Systems / Haiku - Paweł Dziepak [quarnos.org] - 14 September 2014 12:16 UTC

Just following the path of least resistance and adding andq $~15, %rsp where appropriate. That should also make things harder to break when changing the amount of stuff placed on stack before calling the actual syscall routine.

acad7bf kernel/x86_64: make sure stack is properly aligned in syscalls
src/system/kernel/arch/x86/64/interrupts.S | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Upstream: cgit.haiku-os.org


  • Share