diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-05-10 01:44:59 -0400 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-05-10 01:44:59 -0400 |
| commit | 975a9ec96e282e437ccc1bdf1e660dcbf4542791 (patch) | |
| tree | 29bdbd7769d59df82c6bace1d653c8be310c2d08 /kernel/arch/x86/idt.cpp | |
| parent | abaab98bd757cd0818cfcddc983eee25ab7672ed (diff) | |
Added GDT and basic IDT as well as a bitmap drawing function
Diffstat (limited to 'kernel/arch/x86/idt.cpp')
| -rw-r--r-- | kernel/arch/x86/idt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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);
|
