[PATCH] uml: TLB operation batching
[powerpc.git] / arch / um / sys-i386 / stub.S
1 #include "uml-config.h"
2
3         .globl syscall_stub
4 .section .__syscall_stub, "x"
5 syscall_stub:
6         int     $0x80
7         mov     %eax, UML_CONFIG_STUB_DATA
8         int3
9
10         .globl batch_syscall_stub
11 batch_syscall_stub:
12         mov     $UML_CONFIG_STUB_DATA, %esp
13 again:  pop     %eax
14         cmpl    $0, %eax
15         jz      done
16         pop     %ebx
17         pop     %ecx
18         pop     %edx
19         pop     %esi
20         pop     %edi
21         pop     %ebp
22         int     $0x80
23         mov     %eax, UML_CONFIG_STUB_DATA
24         jmp     again
25 done:   int3