From 96e5d8dc99010e2cec8bd2edf59545bd13f6f769 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 28 May 2022 14:08:12 +0300 Subject: 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. --- include/arch/proc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/arch') 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 */ -- cgit v1.3