summaryrefslogtreecommitdiff
path: root/src/process/aarch64/vfork.s
blob: 429bec8cb8a9bc9b3cd284c6f6d5b18f08a56cfc (plain)
1
2
3
4
5
6
7
8
9
.global vfork
.type vfork,%function
vfork:
	mov x8, 220    // SYS_clone
	mov x0, 0x4111 // SIGCHLD | CLONE_VM | CLONE_VFORK
	mov x1, 0
	svc 0
	.hidden __syscall_ret
	b __syscall_ret