From ae3905ebeb415e12667777463e36df6e00ca992c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 22 Sep 2022 17:36:18 +0300 Subject: add assign syscall skeleton --- include/apos/uapi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/apos/uapi.h') diff --git a/include/apos/uapi.h b/include/apos/uapi.h index 4fab0ec..8a3deea 100644 --- a/include/apos/uapi.h +++ b/include/apos/uapi.h @@ -559,6 +559,20 @@ SYSCALL_DECLARE1(kill, tid); * @return \ref OK and 0. */ SYSCALL_DECLARE1(swap, tid); + +/** + * Assign syscall. + * + * Assign \p tid to \p cpu, immediately swaps from whetever was running on \p cpu. + * + * @param tid Thread to assign to \p cpu. + * @param cpu Cpu to run \p tid on. + * @param c Unused. + * @param d Unused. + * @param e Unused. + * @return \ref OK and 0. + */ +SYSCALL_DECLARE2(assign, tid, cpu); /** @} */ /** @name Configuration syscalls. */ -- cgit v1.3