From 975a9ec96e282e437ccc1bdf1e660dcbf4542791 Mon Sep 17 00:00:00 2001 From: EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> Date: Fri, 10 May 2024 01:44:59 -0400 Subject: Added GDT and basic IDT as well as a bitmap drawing function --- kernel/arch/x86/idt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/arch/x86/idt.cpp') diff --git a/kernel/arch/x86/idt.cpp b/kernel/arch/x86/idt.cpp index a8f3ff4..bede1f8 100644 --- a/kernel/arch/x86/idt.cpp +++ b/kernel/arch/x86/idt.cpp @@ -60,13 +60,13 @@ struct idt_entry uint16_t offset_high; }__attribute__((packed)); -struct str_idtr { +struct idtr { uint16_t limit; uint32_t base; }__attribute__((packed)); idt_entry idt[256]; -str_idtr idtr; +idtr idtr; void idt_new_entry(int num, uint32_t offset, uint16_t sel, uint8_t type_attribs) { idt[num].offset_low = (offset & 0xFFFF); -- cgit v1.2.3-70-g09d2