mailing list of musl libc
 help / color / mirror / code / Atom feed
c93dca2396fa2fcc32f6fc8649514b8c04d846ff blob 366 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
.global vfork
.type vfork,@function
vfork:
	/* riscv does not have SYS_vfork, so we must use clone instead */
	/* note: riscv's clone = clone(flags, sp, ptidptr, tls, ctidptr) */
	li a7, 220
	li a0, 0x100 | 0x4000 | 17 /* flags = CLONE_VM | CLONE_VFORK | SIGCHLD */
	mv a1, sp
	/* the other arguments are ignoreable */
	ecall
	.hidden __syscall_ret
	j __syscall_ret
debug log:

solving c93dca23 ...
found c93dca23 in https://git.vuxu.org/mirror/musl/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).