work on tss descriptor

This commit is contained in:
2025-11-10 11:46:58 +01:00
parent 174fe17e89
commit e9009084cf
2 changed files with 29 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
#include "gdt.h"
#include "core.h"
#include "tss.h"
namespace GDT {
@@ -30,6 +31,11 @@ alignas(16) constinit SegmentDescriptor long_mode[] = {
// Global data segment
SegmentDescriptor::Segment64(false, 0),
SegmentDescriptor::Segment64(true , 3),
SegmentDescriptor::Segment64(false, 3),
//SegmentDescriptor::TSSLow(),
//SegmentDescriptor::TSSHigh(),
};
extern "C" constexpr Pointer gdt_long_mode_pointer(long_mode);