From 65eda0862d0150a5cfe11f4e45f5016d7e1a052d Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Mon, 27 Mar 2017 10:34:04 +0200 Subject: [PATCH] Copy over more argument bytes on i386 due to 64-bit args --- src/kernel/mach_server/client/darling_mach_syscall.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kernel/mach_server/client/darling_mach_syscall.S b/src/kernel/mach_server/client/darling_mach_syscall.S index 7aaabdee2..416c1bd72 100644 --- a/src/kernel/mach_server/client/darling_mach_syscall.S +++ b/src/kernel/mach_server/client/darling_mach_syscall.S @@ -43,7 +43,7 @@ __darling_mach_syscall_exit: #define copy_arg(off) \ movl 8+off(%esp), %ecx ;\ - movl %ecx, -24+off(%esp) + movl %ecx, -32+off(%esp) __darling_mach_syscall: cmpl $0, %eax @@ -68,9 +68,11 @@ Lentry_hook: copy_arg(12) copy_arg(16) copy_arg(20) - subl $24, %esp + copy_arg(24) + copy_arg(28) + subl $32, %esp call *%eax - addl $24, %esp + addl $32, %esp .std_ret: Lexit_hook: .space 6, 0x90 -- 2.51.2