From ec9d255b1cd2e6c2c0658027f165b8ff2563922c Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Sat, 6 Nov 2021 00:13:19 +0100 Subject: [PATCH] Correct return value from syscall --- arch/x86/syscall_wrappers.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */