Commit 0f586c44 authored by Alexandre Julliard's avatar Alexandre Julliard

Clear %ebp before entering the new thread.

parent 641c7ae1
...@@ -143,6 +143,7 @@ int clone( int (*fn)(void *), void *stack, int flags, void *arg ) ...@@ -143,6 +143,7 @@ int clone( int (*fn)(void *), void *stack, int flags, void *arg )
"popl %%ebx\n\t" /* Contains fn in the child */ "popl %%ebx\n\t" /* Contains fn in the child */
"testl %%eax,%%eax\n\t" "testl %%eax,%%eax\n\t"
"jnz 0f\n\t" "jnz 0f\n\t"
"xorl %ebp,%ebp\n\t" /* Terminate the stack frames */
"call *%%ebx\n\t" /* Should never return */ "call *%%ebx\n\t" /* Should never return */
"xorl %%eax,%%eax\n\t" /* Just in case it does*/ "xorl %%eax,%%eax\n\t" /* Just in case it does*/
"0:" "0:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment