From 6d22b0dfc7761a605758552d5824f8039ac5a00f Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 25 Nov 2020 15:47:02 -0700 Subject: Primitive ability to call kernel code from userspace. --- include/user/syscall.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 include/user/syscall.h (limited to 'include/user/syscall.h') diff --git a/include/user/syscall.h b/include/user/syscall.h new file mode 100644 index 0000000..c420a3b --- /dev/null +++ b/include/user/syscall.h @@ -0,0 +1,10 @@ +#ifndef USER_SYSCALL_H_ +#define USER_SYSCALL_H_ + +/* This defines the full set of system calls accessible from usermode. */ + +#define SYSCALL(id, fn, kernfn, argt) void fn(argt arg); +#include "kern/syscall/syscall_tbl.inc" +#undef SYSCALL + +#endif -- cgit