Jeff Dike | d67b569 | 2005-07-07 17:56:49 -0700 | [diff] [blame] | 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 |
Jeff Dike | c560049 | 2005-09-03 15:57:36 -0700 | [diff] [blame^] | 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 |