aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-i386/stub.S
blob: a0f9506312d11aa0c7479c1299bac0e5a4a30eb8 (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
#include "uml-config.h"

	.globl syscall_stub
.section .__syscall_stub, "x"
syscall_stub:
	int 	$0x80
	mov	%eax, UML_CONFIG_STUB_DATA
	int3

	.globl batch_syscall_stub
batch_syscall_stub:
	mov	$UML_CONFIG_STUB_DATA, %esp
again:	pop	%eax
	cmpl	$0, %eax
	jz	done
	pop	%ebx
	pop	%ecx
	pop	%edx
	pop	%esi
 	pop	%edi
	pop	%ebp
	int	$0x80
	mov	%eax, UML_CONFIG_STUB_DATA
	jmp	again
done:	int3