diff --git a/include/kernel.h b/include/kernel.h index 3a254313241..a4dca2bce3f 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -494,6 +494,7 @@ __syscall void k_wakeup(k_tid_t thread); * * @return ID of current thread. */ +__attribute_const__ __syscall k_tid_t z_current_get(void); #ifdef CONFIG_THREAD_LOCAL_STORAGE