diff --git a/arch/x86/syscall_wrappers.S b/arch/x86/syscall_wrappers.S index 53e58cb..b8d7e04 100644 --- a/arch/x86/syscall_wrappers.S +++ b/arch/x86/syscall_wrappers.S @@ -57,7 +57,7 @@ syscallHandler: addl $8, %esp /* store the do_syscall return value into interrupted context */ - movl %eax, 12(%esp) + movl %eax, 32(%esp) /* Set the MMU configuration to that of the user thread's process */ pushl %esp /* user_ctxt */