diff --git a/kernel/src/thread/Thread.h b/kernel/src/thread/Thread.h index 43a94e5d..3b37923a 100644 --- a/kernel/src/thread/Thread.h +++ b/kernel/src/thread/Thread.h @@ -1,5 +1,6 @@ #pragma once +#include "arch/MMU.h" #include #include #include @@ -32,9 +33,14 @@ struct Thread : public LinkedListNode u64 sleep_ticks_left; Stack stack; + Stack kernel_stack; ThreadState state = ThreadState::Runnable; + bool is_kernel { true }; + + PageDirectory* directory; + bool is_idle() { return state == ThreadState::Idle;