Clear %ebp before entering the new thread.
This commit is contained in:
parent
641c7ae109
commit
0f586c4444
|
@ -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:"
|
||||
|
|
Loading…
Reference in New Issue