blob: a0f9506312d11aa0c7479c1299bac0e5a4a30eb8 [file] [log] [blame]
Jeff Diked67b5692005-07-07 17:56:49 -07001#include "uml-config.h"
2
3 .globl syscall_stub
4.section .__syscall_stub, "x"
5syscall_stub:
6 int $0x80
7 mov %eax, UML_CONFIG_STUB_DATA
8 int3
Jeff Dikec5600492005-09-03 15:57:36 -07009
10 .globl batch_syscall_stub
11batch_syscall_stub:
12 mov $UML_CONFIG_STUB_DATA, %esp
13again: 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
25done: int3