diff --git a/lib/libc/arch/i386/sys-minix/ucontext.S b/lib/libc/arch/i386/sys-minix/ucontext.S index 459d2dcb6..92ec539d6 100644 --- a/lib/libc/arch/i386/sys-minix/ucontext.S +++ b/lib/libc/arch/i386/sys-minix/ucontext.S @@ -108,6 +108,7 @@ ENTRY(setcontext) mov SI(%edx), %esi /* Restore ESI */ mov BP(%edx), %ebp /* Restore EBP */ mov SP(%edx), %esp /* Restore stack pointer */ + xor %eax, %eax /* Return 0 */ jmp *PC(%edx) /* Return to RTA */ /* void ctx_start((void *func)(int arg1, ..., argn), arg1, ..., argn,