syscall: add basic syscall entry

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-15 16:36:38 -04:00
commit c01b1d7eee
12 changed files with 154 additions and 15 deletions

11
include/kernel/syscall.h Normal file
View file

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _SYSCALL_H_
#define _SYSCALL_H_
#include <kernel/types.h>
typedef ssize_t (*syscall_t)(u64 arg1, u64 arg2, u64 arg3, u64 arg4, u64 arg5, u64 arg6);
syscall_t get_syscall(u64 no);
#endif /* _SYSCALL_H_ */