xref: /third_party/musl/src/thread/x32/clone.s
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/thread/x32/
1570af302Sopenharmony_ci.text
2570af302Sopenharmony_ci.global __clone
3570af302Sopenharmony_ci.hidden __clone
4570af302Sopenharmony_ci.type   __clone,@function
5570af302Sopenharmony_ci__clone:
6570af302Sopenharmony_ci	movl $0x40000038,%eax /* SYS_clone */
7570af302Sopenharmony_ci	mov %rdi,%r11
8570af302Sopenharmony_ci	mov %rdx,%rdi
9570af302Sopenharmony_ci	mov %r8,%rdx
10570af302Sopenharmony_ci	mov %r9,%r8
11570af302Sopenharmony_ci	mov 8(%rsp),%r10
12570af302Sopenharmony_ci	mov %r11,%r9
13570af302Sopenharmony_ci	and $-16,%rsi
14570af302Sopenharmony_ci	sub $8,%rsi
15570af302Sopenharmony_ci	mov %rcx,(%rsi)
16570af302Sopenharmony_ci	syscall
17570af302Sopenharmony_ci	test %eax,%eax
18570af302Sopenharmony_ci	jnz 1f
19570af302Sopenharmony_ci	xor %ebp,%ebp
20570af302Sopenharmony_ci	pop %rdi
21570af302Sopenharmony_ci	call *%r9
22570af302Sopenharmony_ci	mov %eax,%edi
23570af302Sopenharmony_ci	movl $0x4000003c,%eax /* SYS_exit */
24570af302Sopenharmony_ci	syscall
25570af302Sopenharmony_ci	hlt
26570af302Sopenharmony_ci1:	ret
27

Indexes created Thu Nov 07 10:32:03 CST 2024