diff options
Diffstat (limited to 'arch/um/sys-i386/stub.S')
-rw-r--r-- | arch/um/sys-i386/stub.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/um/sys-i386/stub.S b/arch/um/sys-i386/stub.S index 2f2c70a8f043..a0f9506312d1 100644 --- a/arch/um/sys-i386/stub.S +++ b/arch/um/sys-i386/stub.S | |||
@@ -6,3 +6,20 @@ syscall_stub: | |||
6 | int $0x80 | 6 | int $0x80 |
7 | mov %eax, UML_CONFIG_STUB_DATA | 7 | mov %eax, UML_CONFIG_STUB_DATA |
8 | int3 | 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 | ||