From 9273c16434316a8ab60dc78ee65a03e68031203a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 29 Apr 2022 17:38:41 +0300 Subject: continue building base for irq handling --- common/uapi/dispatch.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/uapi/dispatch.c') 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 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]; -- cgit v1.3