diff options
Diffstat (limited to 'usr/klibc/arch/mips/vfork.S')
-rw-r--r-- | usr/klibc/arch/mips/vfork.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/klibc/arch/mips/vfork.S b/usr/klibc/arch/mips/vfork.S new file mode 100644 index 0000000..ae36d5f --- /dev/null +++ b/usr/klibc/arch/mips/vfork.S @@ -0,0 +1,14 @@ +#include <machine/asm.h> +#include <asm/unistd.h> + +#define CLONE_VM 0x00000100 +#define CLONE_VFORK 0x00004000 +#define SIGCHLD 18 + + +LEAF(vfork) + li a0, CLONE_VFORK | CLONE_VM | SIGCHLD + li a1, 0 + li v0, __NR_clone + j __syscall_common + END(vfork) |