From 24934406d5d39e013e22a9e6f4138c4169460d71 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 25 Jul 2024 20:15:40 +0200 Subject: kernel: set up the GDT in assembly This is just for simplicity's sake. I think I could even omit the `movw $TSS, (GdtTss + 2)` and have the linker fill that out as a relocation, but that would probably be more complex overall. --- src/kernel/arch/amd64/interrupts/idt.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/kernel/arch/amd64/interrupts/idt.c') diff --git a/src/kernel/arch/amd64/interrupts/idt.c b/src/kernel/arch/amd64/interrupts/idt.c index 8f37cb9..2a5e8f7 100644 --- a/src/kernel/arch/amd64/interrupts/idt.c +++ b/src/kernel/arch/amd64/interrupts/idt.c @@ -17,8 +17,6 @@ struct idt_entry { uint32_t zero2; } __attribute__((packed)); -// is exactly the same as lgdt_arg, i should combine them into a single struct -// later struct lidt_arg { uint16_t limit; uintptr_t base; -- cgit v1.2.3