feat: add TSS

This commit is contained in:
2026-10-02 12:18:23 +02:00
parent fb71af6d41
commit c4fb939e48
3 changed files with 35 additions and 5 deletions
+2 -2
View File
@@ -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 }; }