feat: add TSS
This commit is contained in:
+2
-2
@@ -6,12 +6,12 @@
|
||||
struct gdt_entry {
|
||||
u64 value;
|
||||
|
||||
constexpr gdt_entry(u32 base, u32 limit, u8 access, u8 flags)
|
||||
constexpr gdt_entry(u32 base, u32 limit, u8 access, u8 flags) noexcept
|
||||
: value((static_cast<u64>(limit & 0xFFFF) << 0) | (static_cast<u64>(base & 0xFFFFFF) << 16) |
|
||||
(static_cast<u64>(access & 0xFF) << 40) | (static_cast<u64>(limit & 0x0F) << 48) |
|
||||
(static_cast<u64>(flags & 0x0F) << 52) | (static_cast<u64>((base >> 24) & 0xFF) << 56)) {}
|
||||
|
||||
constexpr gdt_entry(u64 value)
|
||||
constexpr gdt_entry(u64 value) noexcept
|
||||
: value(value) {}
|
||||
|
||||
static gdt_entry extend(u32 baseHi) { return { baseHi }; }
|
||||
|
||||
Reference in New Issue
Block a user