From 4f4d9fdc89c27aa3346467a24b621954f4564d3b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 29 Dec 2021 23:23:36 +0200 Subject: Refactoring + Mainly just moving stuff out or arch/riscv/ that should be handled in common/ + Prepared separate process stack/call stack for server callbacks, rest to be implemeted soon ish --- common/tcb.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/tcb.c') diff --git a/common/tcb.c b/common/tcb.c index 1547d49..cbbfa47 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -67,3 +67,8 @@ struct tcb *cur_tcb() { return __tcb_cache[cpu_id()]; } + +void set_tcb(struct tcb *t) +{ + __tcb_cache[cpu_id()] = t; +} -- cgit v1.3