diff options
Diffstat (limited to 'core/thread/idle_thread.c')
-rw-r--r-- | core/thread/idle_thread.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/thread/idle_thread.c b/core/thread/idle_thread.c index 4555333a..8faa0719 100644 --- a/core/thread/idle_thread.c +++ b/core/thread/idle_thread.c @@ -2,12 +2,19 @@ #include <limits.h> #include <sys/cpu.h> +static void default_idle_thread_hook(void) +{ +} + +void (*idle_thread_hook)(void) = default_idle_thread_hook; + static void idle_thread_func(void *dummy) { (void)dummy; for (;;) { cli(); + idle_thread_hook(); __schedule(); asm volatile("sti ; hlt" : : : "memory"); } |