Clear %ebp before entering the new thread.

This commit is contained in:
Alexandre Julliard 2001-02-20 01:59:27 +00:00
parent 641c7ae109
commit 0f586c4444
1 changed files with 1 additions and 0 deletions

View File

@ -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:"