vbos/include/kernel/syscall.h
Michael Shaw 210663fe0f syscall: adjust kernel blocking mechanism
Allow for a seamless escalation of privilege that maintains the same
thread of execution during a syscall, allowing syscalls to more easily
block and unblock
2024-06-26 23:48:39 -04:00

17 lines
354 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _SYSCALL_H_
#define _SYSCALL_H_
#define SYS_READ 0
#define SYS_WRITE 1
#define SYS_OPEN 2
#define SYS_FORK 57
#define SYS_EXIT 60
#include <kernel/common.h>
#include <kernel/proc.h>
void sys_set_return(struct proc *proc, uint64_t ret);
void sswtch(); /* save and switch */
#endif /* _SYSCALL_H_ */