From e6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 13 Nov 2022 15:15:22 +0200 Subject: improve documentation on new features --- include/apos/tcb.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/apos') diff --git a/include/apos/tcb.h b/include/apos/tcb.h index 23e6451..6097153 100644 --- a/include/apos/tcb.h +++ b/include/apos/tcb.h @@ -78,6 +78,10 @@ struct tcb { /** Execution continuation point. Important that it is first. */ vm_t exec; + /** + * Address where to save registers. + * @note his address is the top of the register save structure. + */ vm_t regs; /** Arch-specific data. */ @@ -149,6 +153,16 @@ struct tcb { /** RPC context of thread. */ struct tcb_ctx rpc; + /** + * RPC server context of thread. When a thread attaches itself to this + * process, its \ref rpc member is added to the list maintained in this + * variable. This allows the original thread to do rpc calls without + * messing up other threads' rpc status. + * + * I think, more testing required. + */ + struct tcb_ctx server; + /** Notifcation state of thread. */ enum tcb_notify notify_state; -- cgit v1.3