From 8162cb501182a898a11e07d0f142807ae7d6d093 Mon Sep 17 00:00:00 2001 From: Malo Lecomte Date: Wed, 14 Jul 2021 21:31:58 +0200 Subject: [PATCH] feat(idt): change selector to use segment_selector struct --- k/idt.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/k/idt.h b/k/idt.h index 4bc9362..c5613f0 100644 --- a/k/idt.h +++ b/k/idt.h @@ -2,6 +2,7 @@ #define IDT_H #include +#include "gdt.h" #define IDT_NB_ENTRIES 32 #define IDT_SIZE (IDT_NB_ENTRIES * sizeof(struct idt_entry)) @@ -9,9 +10,9 @@ struct idt_entry { uint16_t offset_1 : 16; - uint16_t selector : 16; + struct segment_selector selector; - uint8_t zero : 8; // unused, set to 0 + uint8_t zero_1 : 8; // unused, set to 0 uint8_t type : 3; // gate type uint8_t size : 1; uint8_t zero_2 : 1; // set to 0 for interrupt and trap gates