From 68cae0fde568c29d604426ec01fc5b61356e503a Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Mon, 10 Nov 2025 12:01:06 +0100 Subject: [PATCH] create emtpty tss entry and add descriptor to gdt --- kernel/arch/gdt.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);