chiark / gitweb /
[PATCH] update klibc to version 0.181
[elogind.git] / klibc / klibc / arch / mips / vfork.S
1 #include <asm/asm.h>
2 #include <asm/regdef.h>
3 #include <asm/unistd.h>
4
5 #define CLONE_VM        0x00000100
6 #define CLONE_VFORK     0x00004000
7 #define SIGCHLD         18
8
9         .set noreorder
10         
11 LEAF(vfork)
12         li      a0, CLONE_VFORK | CLONE_VM | SIGCHLD
13         li      a1, 0
14         j       __syscall_common
15           li    v0, __NR_clone
16         END(vfork)