aboutsummaryrefslogtreecommitdiff
path: root/include/apos/tcb.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-11-21 14:02:17 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-11-21 14:02:17 +0200
commit62d395d206171fdaf3fa62c495633990198db6c4 (patch)
treebed68b4a0fd5ff5897f78418fd3527eb05c72ec9 /include/apos/tcb.h
parentd312c853a8c9e6e2fd457fa5f840e65a9a738e7d (diff)
downloadkmi-62d395d206171fdaf3fa62c495633990198db6c4.tar.gz
kmi-62d395d206171fdaf3fa62c495633990198db6c4.zip
possible optimisations
Diffstat (limited to 'include/apos/tcb.h')
-rw-r--r--include/apos/tcb.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/apos/tcb.h b/include/apos/tcb.h
index 981f352..34b0457 100644
--- a/include/apos/tcb.h
+++ b/include/apos/tcb.h
@@ -31,13 +31,23 @@
#define is_rpc(t) (t->rid != t->pid)
/**
- * Get the process thread of current thread.
+ * Get the effective process thread of current thread.
*
* @param t Thread whose effective process thread to get.
* @return The process thread of the current thread.
*/
#define get_proc(t) (get_tcb(t->eid))
+#define get_eproc(t) get_proc(t)
+
+/**
+ * Get the current process thread of current thread.
+ *
+ * @param t Thread whose current process thread to get.
+ * @return The current process thread of the current thread.
+ */
+#define get_cproc(t) (get_tcb(t->pid))
+
/**
* Get the root process thread of current thread.
*