summaryrefslogtreecommitdiff
path: root/src/process/x32/vfork.s
blob: 8df0058237bc09ad669a74cf0dcf426e8b244d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.global __vfork
.weak vfork
.type __vfork,@function
.type vfork,@function
__vfork:
vfork:
	pop %rdx
	mov $0x4000003a,%eax /* SYS_vfork */
	syscall
	push %rdx
	mov %rax,%rdi
	.hidden __syscall_ret
	jmp __syscall_ret