summaryrefslogtreecommitdiff
path: root/src/thread/i386/clone.s
blob: 53405cf19736aa1f86dbbe138bfc587731561d05 (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
.text
.global __uniclone
.type   __uniclone,%function
__uniclone:
	movl	4(%esp),%ecx
	subl	$24,%ecx
	movl	8(%esp),%eax
	movl	%eax,16(%ecx)
	movl	12(%esp),%eax
	movl	%eax,24(%ecx)
	pushl	%ebx
	pushl	%esi
	pushl	%edi
	pushl   %ebp
	movl    %eax,8(%eax)
	leal    20(%eax),%edx
	leal    4(%eax),%esi
	movl	%edx,%edi
	movl	$0x7d0f00,%ebx
	movl	$120,%eax
	int	$128
	popl    %ebp
	popl	%edi
	popl	%esi
	popl	%ebx
	ret
.size __uniclone,.-__uniclone