tags 994510 + patch
thanks

Hi,

I've attached a patch that does the same difference as the glibc change.

An alternative is that we also create a setcontext.

I can't reproduce the original issue, so I can't check if this fixed
anything.


Kurt

diff --git a/getcontext-linux.S.old b/getcontext-linux.S
index 4191e3c..1924969 100644
--- src/x86/getcontext-linux.S.old
+++ src/x86/getcontext-linux.S
@@ -40,12 +40,7 @@ _Ux86_getcontext:
 	.cfi_startproc
 	mov	4(%esp),%eax  /* ucontext_t* */
 
-	/* EAX is not preserved. */
-	movl	$0, (LINUX_UC_MCONTEXT_OFF+LINUX_SC_EAX_OFF)(%eax)
-
 	movl	%ebx, (LINUX_UC_MCONTEXT_OFF+LINUX_SC_EBX_OFF)(%eax)
-	movl	%ecx, (LINUX_UC_MCONTEXT_OFF+LINUX_SC_ECX_OFF)(%eax)
-	movl	%edx, (LINUX_UC_MCONTEXT_OFF+LINUX_SC_EDX_OFF)(%eax)
 	movl	%edi, (LINUX_UC_MCONTEXT_OFF+LINUX_SC_EDI_OFF)(%eax)
 	movl	%esi, (LINUX_UC_MCONTEXT_OFF+LINUX_SC_ESI_OFF)(%eax)
 	movl	%ebp, (LINUX_UC_MCONTEXT_OFF+LINUX_SC_EBP_OFF)(%eax)

Reply via email to