From 22eeabc6c63e220d628417ea525c8838f3fae913 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 22 Oct 2022 14:38:52 +0300 Subject: initial high level fork imp --- include/apos/syscalls.h | 3 --- include/apos/uapi.h | 15 +-------------- include/arch/cpu.h | 3 --- 3 files changed, 1 insertion(+), 20 deletions(-) (limited to 'include') diff --git a/include/apos/syscalls.h b/include/apos/syscalls.h index a5b7e18..dd383c8 100644 --- a/include/apos/syscalls.h +++ b/include/apos/syscalls.h @@ -104,9 +104,6 @@ enum { /** Switch running process. */ SYS_SWAP, - /** Assign thread to cpu. */ - SYS_ASSIGN, - /** @} */ /** @name Kernel management. */ diff --git a/include/apos/uapi.h b/include/apos/uapi.h index 7da24c6..7d612b6 100644 --- a/include/apos/uapi.h +++ b/include/apos/uapi.h @@ -511,7 +511,7 @@ SYSCALL_DECLARE2(ipc_notify, tid, swap); * @return \ref OK and 0. * \todo Should this take stack size etc? */ -SYSCALL_DECLARE2(create, func, arg); +SYSCALL_DECLARE5(create, func, d0, d1, d2, d3); /** * Fork process syscall. @@ -583,19 +583,6 @@ SYSCALL_DECLARE1(kill, tid); */ 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. */ diff --git a/include/arch/cpu.h b/include/arch/cpu.h index ddea2ac..66d5d45 100644 --- a/include/arch/cpu.h +++ b/include/arch/cpu.h @@ -36,7 +36,4 @@ id_t cpu_id(); */ void cpu_assign(struct tcb *t); -/** \todo Should init be assigned one thread per core, or how should I handle - * giving out CPU IDs? */ - #endif /* APOS_CPU_H */ -- cgit v1.3