From 0f586c4444f694d21a51d50e515b03518005d0fe Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 20 Feb 2001 01:59:27 +0000 Subject: [PATCH] Clear %ebp before entering the new thread. --- library/port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/port.c b/library/port.c index af0c24429ff..004f8538401 100644 --- a/library/port.c +++ b/library/port.c @@ -143,6 +143,7 @@ int clone( int (*fn)(void *), void *stack, int flags, void *arg ) "popl %%ebx\n\t" /* Contains fn in the child */ "testl %%eax,%%eax\n\t" "jnz 0f\n\t" + "xorl %ebp,%ebp\n\t" /* Terminate the stack frames */ "call *%%ebx\n\t" /* Should never return */ "xorl %%eax,%%eax\n\t" /* Just in case it does*/ "0:" -- 2.11.4.GIT