forked from Bananymous/banan-os
Kernel: Add helper for checking whether segment is from userspace
This commit is contained in:
parent
531211e09d
commit
336daa2cc5
|
@ -5,6 +5,11 @@
|
||||||
namespace Kernel::GDT
|
namespace Kernel::GDT
|
||||||
{
|
{
|
||||||
|
|
||||||
|
static constexpr inline bool is_user_segment(uint8_t segment)
|
||||||
|
{
|
||||||
|
return (segment & 3) == 3;
|
||||||
|
}
|
||||||
|
|
||||||
void initialize();
|
void initialize();
|
||||||
void set_tss_stack(uintptr_t);
|
void set_tss_stack(uintptr_t);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue