diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/tcb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/tcb.c b/common/tcb.c index 94abef7..8ff86ab 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -291,7 +291,8 @@ DEFINE_ATTACH(attach_proc, proc); DEFINE_DETACH(detach_rpc, rpc); DEFINE_DETACH(detach_proc, proc); -struct tcb *cur_tcb() +/* weak to allow optimisation on risc-v, but provide fallback for future */ +__weak struct tcb *cur_tcb() { return cpu_tcb[cpu_id()]; } |
