vfs: add syscall layer skeleton

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-19 19:47:41 -04:00
commit 09116d65ea
5 changed files with 59 additions and 2 deletions

View file

@ -13,7 +13,7 @@ syscall_t get_syscall(u64 no)
return syscalls[no];
}
int syscall_insert(syscall_t fun, u64 no)
int syscall_insert(void *fun, u64 no)
{
if (no >= ARRAY_SIZE(syscalls))
return -EINVAL;
@ -21,7 +21,7 @@ int syscall_insert(syscall_t fun, u64 no)
if (syscalls[no])
return -EEXIST;
syscalls[no] = fun;
syscalls[no] = (syscall_t)fun;
return no;
}