aboutsummaryrefslogtreecommitdiff
path: root/include/apos
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos')
-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;