diff options
Diffstat (limited to 'common/tcb.c')
| -rw-r--r-- | common/tcb.c | 6 |
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); } |
