diff options
Diffstat (limited to 'include/apos')
| -rw-r--r-- | include/apos/syscalls.h | 3 | ||||
| -rw-r--r-- | include/apos/uapi.h | 24 |
2 files changed, 15 insertions, 12 deletions
diff --git a/include/apos/syscalls.h b/include/apos/syscalls.h index 0a6f0c7..1746255 100644 --- a/include/apos/syscalls.h +++ b/include/apos/syscalls.h @@ -79,6 +79,9 @@ enum { /** IPC response from server. */ SYS_IPC_RESP, + + /** IPC notify thread, essentially interrupt or signal. */ + SYS_IPC_NOTIFY /** @} */ /** @name Process management. */ diff --git a/include/apos/uapi.h b/include/apos/uapi.h index d0ce350..4fab0ec 100644 --- a/include/apos/uapi.h +++ b/include/apos/uapi.h @@ -474,6 +474,18 @@ SYSCALL_DECLARE5(ipc_fwd, pid, d0, d1, d2, d3); * @return \c d0 and \c d1. */ SYSCALL_DECLARE4(ipc_resp, d0, d1, d2, d3); + +/** + * Notify thread syscall. + * + * @param tid Thread ID to notify. + * @param swap Whether to immediately swap. + * @param a0 Argument 0. + * @param a1 Argument 1. + * @param e Unused. + * @return \ref OK and 0. + */ +SYSCALL_DECLARE4(notify, tid, swap, a0, a1); /** @} */ /** @name Process handling syscalls. */ @@ -535,18 +547,6 @@ SYSCALL_DECLARE2(exec, bin, interp); SYSCALL_DECLARE1(kill, tid); /** - * Signal process syscall. - * - * @param tid Thread ID to signal. - * @param signal Signal to send. - * @param swap Whether to immediately swap. - * @param d Unused. - * @param e Unused. - * @return \ref OK and 0. - */ -SYSCALL_DECLARE3(signal, tid, signal, swap); - -/** * Swap syscall. * * Swap currently running thread. |
