From 30495d6f06108864c151e744ec1aad98e70c3334 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 11 Dec 2023 22:46:45 -0500 Subject: kernel/amd64: Add Task State Segment Signed-off-by: Ian Moffett --- sys/arch/amd64/gdt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/arch/amd64/gdt.c') diff --git a/sys/arch/amd64/gdt.c b/sys/arch/amd64/gdt.c index 209e2f7..667170a 100644 --- a/sys/arch/amd64/gdt.c +++ b/sys/arch/amd64/gdt.c @@ -72,8 +72,13 @@ struct gdt_entry g_gdt[256] = { .granularity = 0x00, .base_hi = 0x00 }, + + /* TSS segment (0x28) */ + {0} }; +struct gdt_entry *g_gdt_tss = &g_gdt[GDT_TSS]; + struct gdtr g_gdtr = { .limit = sizeof(struct gdt_entry) * 256 - 1, .offset = (uintptr_t)&g_gdt[0] -- cgit v1.2.3