summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/i386/gen/rfork_thread.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/i386/gen/rfork_thread.S b/lib/libc/i386/gen/rfork_thread.S
index d01aebe..c0fc624 100644
--- a/lib/libc/i386/gen/rfork_thread.S
+++ b/lib/libc/i386/gen/rfork_thread.S
@@ -109,5 +109,9 @@ ENTRY(rfork_thread)
* Branch here if the thread creation fails:
*/
2:
+ addl $8, %esp
+ popl %esi
+ movl %ebp, %esp
+ popl %ebp
PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror))
OpenPOWER on IntegriCloud