diff options
| author | Austin Foxley <austinf@cetoncorp.com> | 2009-09-22 15:13:17 -0700 |
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-09-22 15:13:17 -0700 |
| commit | b10ae3e1a7c105609771b0de911ff9e72a4cc0d1 (patch) | |
| tree | 714bff4be539f60d1467d4b2a4373fa9e7d940f8 /libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S | |
| parent | 51468f1123252fbc9f1cbb244160cf7d95d01334 (diff) | |
| download | uClibc-alpine-b10ae3e1a7c105609771b0de911ff9e72a4cc0d1.tar.bz2 uClibc-alpine-b10ae3e1a7c105609771b0de911ff9e72a4cc0d1.tar.xz | |
spent this morning beating i386 nptl into shape
Got it compiling thus far, still working on getting it to run
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S')
| -rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S index 7ab222e1b..939538927 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S @@ -17,10 +17,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include <sysdep.h> -#define _ERRNO_H 1 -#include <bits/errno.h> -#include <bits/kernel-features.h> #include <tcb-offsets.h> /* Save the PID value. */ @@ -37,32 +33,4 @@ movl %edx, %gs:PID; \ 1: -/* Clone the calling process, but without copying the whole address space. - The calling process is suspended until the new process exits or is - replaced by a call to `execve'. Return -1 for errors, 0 to the new process, - and the process ID of the new process to the old process. */ - -ENTRY (__vfork) - /* Pop the return PC value into ECX. */ - popl %ecx - - SAVE_PID - - /* Stuff the syscall number in EAX and enter into the kernel. */ - movl $SYS_ify (vfork), %eax - int $0x80 - - RESTORE_PID - - /* Jump to the return PC. Don't jump directly since this - disturbs the branch target cache. Instead push the return - address back on the stack. */ - pushl %ecx - - cmpl $-4095, %eax - jae SYSCALL_ERROR_LABEL /* Branch forward if it failed. */ -.Lpseudo_end: - ret -PSEUDO_END (__vfork) - -weak_alias (__vfork, vfork) +#include <../../../../../../../libc/sysdeps/linux/i386/vfork.S> |
