diff --git a/kernel/include/kernel/GDT.h b/kernel/include/kernel/GDT.h index 251ff0abba..5f5d3093dc 100644 --- a/kernel/include/kernel/GDT.h +++ b/kernel/include/kernel/GDT.h @@ -5,6 +5,11 @@ namespace Kernel::GDT { + static constexpr inline bool is_user_segment(uint8_t segment) + { + return (segment & 3) == 3; + } + void initialize(); void set_tss_stack(uintptr_t);