about summary refs log tree commit diff
path: root/src/process/x32/vfork.s
blob: 0f0ca3ee4863288b790a8cdf49bbbb4066fea507 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
.global vfork
.type vfork,@function
vfork:
	pop %rdx
	mov $0x4000003a,%eax /* SYS_vfork */
	syscall
	push %rdx
	mov %rax,%rdi
	.hidden __syscall_ret
	jmp __syscall_ret