You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
387 B
25 lines
387 B
#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
|
|
|