aboutsummaryrefslogtreecommitdiff
path: root/common/tcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/tcb.c')
-rw-r--r--common/tcb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/tcb.c b/common/tcb.c
index 675aa1f..1c1a623 100644
--- a/common/tcb.c
+++ b/common/tcb.c
@@ -300,6 +300,12 @@ __weak struct tcb *cur_tcb()
struct tcb *cur_proc()
{
struct tcb *t = cur_tcb();
+ return get_tcb(t->pid);
+}
+
+struct tcb *eff_proc()
+{
+ struct tcb *t = cur_tcb();
return get_tcb(t->eid);
}