summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/i386/gen/rfork_thread.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/i386/gen/rfork_thread.S b/lib/libc/i386/gen/rfork_thread.S
index 674f86e..2d63b67c 100644
--- a/lib/libc/i386/gen/rfork_thread.S
+++ b/lib/libc/i386/gen/rfork_thread.S
@@ -63,9 +63,8 @@ ENTRY(rfork_thread)
/*
* Prepare and execute the thread creation syscall
*/
- pushl 12(%ebp)
pushl 8(%ebp)
- pushl %esi
+ pushl $0
leal SYS_rfork, %eax
KERNCALL
jb 2f
@@ -91,16 +90,17 @@ ENTRY(rfork_thread)
movl %esi,%esp
popl %eax
call *%eax
- addl $12, %esp
+ addl $4, %esp
/*
* Exit system call
*/
pushl %eax
+ pushl $0
#ifdef SYS_exit
- pushl $SYS_exit
+ leal SYS_exit, %eax
#else
- pushl $SYS_sys_exit
+ leal SYS_sys_exit, %eax
#endif
KERNCALL
OpenPOWER on IntegriCloud