summaryrefslogtreecommitdiff
path: root/src/process/x86_64/vfork.s
blob: 2cad80520c326bb3402424f374373c2c5a70730b (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 $58,%eax
	syscall
	push %rdx
	mov %rax,%rdi
	.hidden __syscall_ret
	jmp __syscall_ret