summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kern/thread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 07973431..2d28aa82 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -392,6 +392,12 @@ thread_real_global_priority(const struct thread *thread)
*/
const char * thread_sched_class_to_str(unsigned char sched_class);
+static inline struct tcb *
+thread_get_tcb(struct thread *thread)
+{
+ return &thread->tcb;
+}
+
static inline struct thread *
thread_from_tcb(struct tcb *tcb)
{