Lines Matching refs:syscall
3 /*--- Support for doing system calls. syscall-amd64-linux.S ---*/
40 Perform a syscall for the client. This will run a syscall
43 The structure of this function is such that, if the syscall is
46 the syscall by examining the value of %eip in the signal
48 thing to precisely emulate the kernel's signal/syscall
51 The syscall number is taken from the argument, even though it
52 should also be in guest_state->guest_RAX. The syscall result
55 Returns 0 if the syscall was successfully called (even if the
56 syscall itself failed), or a -ve error code if one of the
106 If eip is in the range [1,2), the syscall hasn't been started yet */
108 /* Set the signal mask which should be current during the syscall. */
114 movq $__NR_rt_sigprocmask, %rax // syscall #
119 syscall
126 /* OK, that worked. Now do the syscall proper. */
140 /* If rip==2, then the syscall was either just about
143 2: syscall
144 3: /* In the range [3, 4), the syscall result is in %rax,
151 4: /* Re-block signals. If eip is in [4,5), then the syscall
156 movq $__NR_rt_sigprocmask, %rax // syscall #
161 syscall