aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-10-22 14:38:52 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-10-22 14:38:52 +0300
commit22eeabc6c63e220d628417ea525c8838f3fae913 (patch)
tree6dde5f5bf5e671c11ed64cbcacf9245bfe900d2f /include
parentdd7c04a39bd88da8e381bb88078c41b049a6665c (diff)
downloadkmi-22eeabc6c63e220d628417ea525c8838f3fae913.tar.gz
kmi-22eeabc6c63e220d628417ea525c8838f3fae913.zip
initial high level fork imp
Diffstat (limited to 'include')
-rw-r--r--include/apos/syscalls.h3
-rw-r--r--include/apos/uapi.h15
-rw-r--r--include/arch/cpu.h3
3 files changed, 1 insertions, 20 deletions
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 */