diff options
Diffstat (limited to 'common/uapi')
| -rw-r--r-- | common/uapi/dispatch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/uapi/dispatch.c b/common/uapi/dispatch.c index e6c334a..5522c9f 100644 --- a/common/uapi/dispatch.c +++ b/common/uapi/dispatch.c @@ -1,6 +1,8 @@ #include <apos/uapi.h> static const sys_t syscall_table[] = { + /* noop */ + [SYS_NOOP] = sys_noop, /* mem */ [SYS_REQ_MEM] = sys_req_mem, [SYS_REQ_PMEM] = sys_req_pmem, @@ -29,6 +31,11 @@ static const sys_t syscall_table[] = { [SYS_POWEROFF] = sys_poweroff, }; +SYSCALL_DEFINE0(noop)() +{ + return 0; +} + vm_t syscall_dispatch(vm_t syscall, vm_t a, vm_t b, vm_t c, vm_t d) { sys_t call = syscall_table[syscall]; |
