diff --git a/src/system/kernel/arch/x86/arch_interrupts.S b/src/system/kernel/arch/x86/arch_interrupts.S index ee92049660..185e4e0431 100644 --- a/src/system/kernel/arch/x86/arch_interrupts.S +++ b/src/system/kernel/arch/x86/arch_interrupts.S @@ -400,7 +400,9 @@ handle_syscall: jz 1f pushl -4(%ebp) // syscall start time pushl -8(%ebp) - push %edx // syscall return value + movl IFRAME_edx(%ebp), %edx // syscall return value + movl IFRAME_eax(%ebp), %eax + push %edx push %eax lea 16(%esp), %eax // syscall parameters push %eax