aboutsummaryrefslogtreecommitdiff
path: root/include/arch/proc.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-28 14:08:12 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-28 14:08:12 +0300
commit96e5d8dc99010e2cec8bd2edf59545bd13f6f769 (patch)
treebd3e5433c042c28707ec787cd6a133e6307d3e51 /include/arch/proc.h
parentc5ce4978958762849083143d1fcbe694b44b5c51 (diff)
downloadkmi-96e5d8dc99010e2cec8bd2edf59545bd13f6f769.tar.gz
kmi-96e5d8dc99010e2cec8bd2edf59545bd13f6f769.zip
start implementing new proc/rpc handling
+ Essentially, separate root process and remote procedure call handling. I really should write down some documentation so I don't forget, but essentially: All threads share a common process virtual memory, and when a thread wants to make an rpc, it switches over to its own rpc vmem space that is linked to the remote process.
Diffstat (limited to 'include/arch/proc.h')
-rw-r--r--include/arch/proc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/arch/proc.h b/include/arch/proc.h
index 1dcb0af..9af44c9 100644
--- a/include/arch/proc.h
+++ b/include/arch/proc.h
@@ -13,8 +13,9 @@
#endif
stat_t set_return(vm_t r);
+stat_t set_ipc(struct tcb *t, id_t pid, id_t tid);
/*TODO: should this be in arch/tcb.h or something? */
-stat_t prepare_thread(struct tcb *t);
+stat_t set_thread(struct tcb *t, vm_t stack);
stat_t run_init(struct tcb *t, void *fdt);
#endif /* APOS_ARCH_PROC_H */