summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/interrupts/idt.c
diff options
context:
space:
mode:
authordzwdz2024-07-25 20:15:40 +0200
committerdzwdz2024-07-25 20:15:40 +0200
commit24934406d5d39e013e22a9e6f4138c4169460d71 (patch)
tree358f6c1dc386c50b85900a557321a256048737cd /src/kernel/arch/amd64/interrupts/idt.c
parenta6fabfb78e70b8096a8bf336aa64a3358a2f5eca (diff)
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.
Diffstat (limited to 'src/kernel/arch/amd64/interrupts/idt.c')
-rw-r--r--src/kernel/arch/amd64/interrupts/idt.c2
1 files changed, 0 insertions, 2 deletions
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;