1#ifndef _MINIOS_SYSCALL_H_
2#define _MINIOS_SYSCALL_H_
34#define SYS_mprotect 10
37#define SYS_sigreturn 15
40#define SYS_pwrite64 18
47#define SYS_nanosleep 35
54#define SYS_gettimeofday 96
58#define SYS_fstatfs 138
61#define SYS_ftruncate 77
62#define SYS_getdents 78
71#define SYS_readlink 89
73#define SYS_setpgid 109
74#define SYS_getppid 110
78#define SYS_sigaction 174
79#define SYS_sched_getcpu 318
80#define SYS_clock_gettime 228
87#define SYS_recvfrom 45
88#define SYS_shutdown 48
91#define SYS_socketpair 53
92#define SYS_setsockopt 54
93#define SYS_getsockopt 55
95#define SYS_arch_prctl 158
98#define SYS_set_tid_address 218
101#define SYS_setitimer_miniOS 452
102#define SYS_alarm_miniOS 453
103#define SYS_register_sigtrampoline 454
void syscall_init(void)
Writes IA32_LSTAR MSR to the address of syscall_entry (the NASM entry stub in syscall....
Definition syscall.c:145
void syscall_save_restart_state(uint64_t nr, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4, uint64_t a5, uint64_t a6)
Definition syscall.c:130
void syscall_get_saved_user_rdi_rsi_rdx(uint64_t *out_rdi, uint64_t *out_rsi, uint64_t *out_rdx)
The SYSCALL instruction clobbers RCX and R11; arguments in RDI/RSI/RDX are preserved by the syscall....
Definition syscall.c:117
unsigned long int uint64_t
Definition types.h:37