mailing list of musl libc
 help / color / mirror / code / Atom feed
42aab67a375923b106c51d77a0a617fadbeefce1 blob 734 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
// __clone(func, stack, flags, arg, ptid, tls, ctid)
//         r0,   r1,    r2,    r3,  r4,   r5,  stack

// tid = syscall(SYS_clone, flags, stack, ptid, ctid, tls)
//               r6,        r0,    r1,    r2,   r3,   r4
// if (tid != 0) return
// func(arg)
// syscall(SYS_exit)

.text
.global __clone
.type   __clone,%function
__clone:
	allocframe(#8)
	// Save pointers for later
	{ r11 = r0
	  r10 = r3 }

	// Set up syscall args - The stack must be 8 byte aligned.
	{ r0 = r2
	  r1 = and(r1, ##0xfffffff8)
	  r2 = r4 }
	{
	  r3 = memw(r30+#8)
	  r4 = r5 }
	r6 = #220			// SYS_clone
	trap0(#1)

	p0 = cmp.eq(r0, #0)
	if (!p0) dealloc_return

	{ r0 = r10
	  callr r11 }

	r6 = #93			// SYS_exit
	trap0(#1)
.size __clone, .-__clone
debug log:

solving 42aab67a ...
found 42aab67a in https://inbox.vuxu.org/musl/073501d68d42$4a8c6080$dfa52180$@codeaurora.org/ ||
	https://inbox.vuxu.org/musl/142401d71522$64665b60$2d331220$@codeaurora.org/ ||
	https://inbox.vuxu.org/musl/110801d68c6a$dfe3f950$9fabebf0$@codeaurora.org/ ||
	https://inbox.vuxu.org/musl/1a0301d6458e$b4264d90$1c72e8b0$@codeaurora.org/ ||
	https://inbox.vuxu.org/musl/078f01d65edc$80e892f0$82b9b8d0$@codeaurora.org/

applying [1/5] https://inbox.vuxu.org/musl/073501d68d42$4a8c6080$dfa52180$@codeaurora.org/
diff --git a/src/thread/hexagon/clone.s b/src/thread/hexagon/clone.s
new file mode 100644
index 00000000..42aab67a

Checking patch src/thread/hexagon/clone.s...
Applied patch src/thread/hexagon/clone.s cleanly.

skipping https://inbox.vuxu.org/musl/142401d71522$64665b60$2d331220$@codeaurora.org/ for 42aab67a
skipping https://inbox.vuxu.org/musl/110801d68c6a$dfe3f950$9fabebf0$@codeaurora.org/ for 42aab67a
skipping https://inbox.vuxu.org/musl/1a0301d6458e$b4264d90$1c72e8b0$@codeaurora.org/ for 42aab67a
skipping https://inbox.vuxu.org/musl/078f01d65edc$80e892f0$82b9b8d0$@codeaurora.org/ for 42aab67a
index at:
100644 42aab67a375923b106c51d77a0a617fadbeefce1	src/thread/hexagon/clone.s

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).