create emtpty tss entry and add descriptor to gdt

This commit is contained in:
2025-11-10 12:01:06 +01:00
parent e9009084cf
commit 68cae0fde5

View File

@@ -3,6 +3,8 @@
#include "core.h" #include "core.h"
#include "tss.h" #include "tss.h"
TSS::Entry mytss;
namespace GDT { namespace GDT {
// The static 32-bit Global Descriptor Table (GDT) // The static 32-bit Global Descriptor Table (GDT)
@@ -34,8 +36,8 @@ alignas(16) constinit SegmentDescriptor long_mode[] = {
SegmentDescriptor::Segment64(true , 3), SegmentDescriptor::Segment64(true , 3),
SegmentDescriptor::Segment64(false, 3), SegmentDescriptor::Segment64(false, 3),
//SegmentDescriptor::TSSLow(), SegmentDescriptor::TSSLow(mytss),
//SegmentDescriptor::TSSHigh(), SegmentDescriptor::TSSHigh(mytss),
}; };
extern "C" constexpr Pointer gdt_long_mode_pointer(long_mode); extern "C" constexpr Pointer gdt_long_mode_pointer(long_mode);