• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.syntax unified
2.text
3.global __clone
4.hidden __clone
5.type   __clone,%function
6.ifndef __LITEOS__
7.cfi_startproc
8.endif
9__clone:
10	stmfd sp!,{r4,r5,r6,r7}
11	.ifndef __LITEOS__
12	.cfi_def_cfa_offset 16
13	.cfi_rel_offset r4, 0
14	.cfi_rel_offset r5, 4
15	.cfi_rel_offset r6, 8
16	.cfi_rel_offset r7, 12
17	.endif
18	mov r7,#120
19	mov r6,r3
20	mov r5,r0
21	mov r0,r2
22	and r1,r1,#-16
23	ldr r2,[sp,#16]
24	ldr r3,[sp,#20]
25	ldr r4,[sp,#24]
26	svc 0
27	tst r0,r0
28	beq 1f
29	ldmfd sp!,{r4,r5,r6,r7}
30	.ifndef __LITEOS__
31	.cfi_def_cfa_offset 0
32	.endif
33	bx lr
34
351:	mov r0,r6
36	bl 3f
372:	mov r7,#1
38	svc 0
39	b 2b
40
413:	bx r5
42.ifndef __LITEOS__
43.cfi_endproc
44.endif
45