aboutsummaryrefslogtreecommitdiff
path: root/include/apos/tcb.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 15:15:22 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 15:15:22 +0200
commite6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10 (patch)
tree9484a801bc205e0e5f921ebeaba0a15e4d561400 /include/apos/tcb.h
parentb36e3b83b402ee054c319f0472b16a2bd64bba7e (diff)
downloadkmi-e6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10.tar.gz
kmi-e6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10.zip
improve documentation on new features
Diffstat (limited to 'include/apos/tcb.h')
-rw-r--r--include/apos/tcb.h14
1 files changed, 14 insertions, 0 deletions
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;