1 #include "uml-config.h"
5 .section .__syscall_stub, "x"
7 .globl batch_syscall_stub
9 /* load pointer to first operation */
10 mov $(ASM_STUB_DATA+8), %esp
13 /* load length of additional data */
16 /* if(length == 0) : end of list */
17 /* write possible 0 to header */
18 mov %eax, ASM_STUB_DATA+4
22 /* save current pointer */
23 mov %esp, ASM_STUB_DATA+4
25 /* skip additional data */
31 /* load syscall params */
42 /* check return value */
48 /* save return value */
49 mov %eax, ASM_STUB_DATA