clone.s\i386\thread\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/thread/i386/clone.s
blob: e237d3c6324b984601048c07d8b7976b6c6e601a (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
.text
.global __clone
.hidden __clone
.type __clone,@function
__clone:
	push %ebp
	mov %esp,%ebp
	push %ebx
	push %esi
	push %edi
	xor %eax,%eax
	push 0ドルx51
	mov %gs,%ax
	push 0ドルxfffff
	shr 3,ドル%eax
	push 28(%ebp)
	push %eax
	mov 120,ドル%al
	mov 12(%ebp),%ecx
	mov 16(%ebp),%ebx
	and $-16,%ecx
	sub 16,ドル%ecx
	mov 20(%ebp),%edi
	mov %edi,(%ecx)
	mov 24(%ebp),%edx
	mov %esp,%esi
	mov 32(%ebp),%edi
	mov 8(%ebp),%ebp
	int 128ドル
	test %eax,%eax
	jnz 1f
	mov %ebp,%eax
	xor %ebp,%ebp
	call *%eax
	mov %eax,%ebx
	xor %eax,%eax
	inc %eax
	int 128ドル
	hlt
1:	add 16,ドル%esp
	pop %edi
	pop %esi
	pop %ebx
	pop %ebp
	ret
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月06日 04:43:02 +0000

AltStyle によって変換されたページ (->オリジナル) /