vfs: add syscall layer skeleton
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
cd916f624b
commit
09116d65ea
5 changed files with 59 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue