diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-09 16:27:23 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-09 17:27:11 +0200 |
| commit | a3e45d5dcaf1bf3a9e684b5fcc301413ec994a9b (patch) | |
| tree | ae319c8f389e7ca39bbdd4b114655f8604563305 /include/apos/uapi.h | |
| parent | 2b5533aefef026fe7bada314ebdb2651b809979a (diff) | |
| download | kmi-a3e45d5dcaf1bf3a9e684b5fcc301413ec994a9b.tar.gz kmi-a3e45d5dcaf1bf3a9e684b5fcc301413ec994a9b.zip | |
add basic IPI structure
Diffstat (limited to 'include/apos/uapi.h')
| -rw-r--r-- | include/apos/uapi.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/apos/uapi.h b/include/apos/uapi.h index 084c1fa..83de7eb 100644 --- a/include/apos/uapi.h +++ b/include/apos/uapi.h @@ -500,13 +500,13 @@ SYSCALL_DECLARE4(ipc_resp, d0, d1, d2, d3); * Notify thread syscall. * * @param tid Thread ID to notify. - * @param swap Whether to immediately swap. + * @param b Unused. * @param c Unused. * @param d Unused. * @param e Unused. * @return \ref OK and 0. */ -SYSCALL_DECLARE2(ipc_notify, tid, swap); +SYSCALL_DECLARE1(ipc_notify, tid); /** @} */ /** @name Process handling syscalls. */ @@ -683,6 +683,7 @@ SYSCALL_DECLARE1(poweroff, type); /** * Dispatch to correct syscall handler. * + * @param t Thread to do syscall on. * @param syscall Syscall number. * @param a Syscall argument 0. * @param b Syscall argument 1. @@ -691,8 +692,9 @@ SYSCALL_DECLARE1(poweroff, type); * @param e Syscall argument 4. * @return Whatever the specified syscall returns. */ -struct sys_ret syscall_dispatch(sys_arg_t syscall, sys_arg_t a, sys_arg_t b, - sys_arg_t c, sys_arg_t d, sys_arg_t e); +struct sys_ret handle_syscall(struct tcb *t, + sys_arg_t syscall, sys_arg_t a, sys_arg_t b, + sys_arg_t c, sys_arg_t d, sys_arg_t e); /** \todo Should I add variable names as well, to make the documentation a bit * more readable? */ |
