diff --git a/kernel/arch/gdt.cc b/kernel/arch/gdt.cc index 1afc815..c14ad98 100644 --- a/kernel/arch/gdt.cc +++ b/kernel/arch/gdt.cc @@ -3,6 +3,8 @@ #include "core.h" #include "tss.h" +TSS::Entry mytss; + namespace 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(false, 3), - //SegmentDescriptor::TSSLow(), - //SegmentDescriptor::TSSHigh(), + SegmentDescriptor::TSSLow(mytss), + SegmentDescriptor::TSSHigh(mytss), }; extern "C" constexpr Pointer gdt_long_mode_pointer(long_mode);