From 2549b2503b67b2931850980ad6c89a792bd98676 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 16 Apr 2021 17:45:49 +0200 Subject: Cleaning IDT code --- src/core/idt.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/core/idt.h') diff --git a/src/core/idt.h b/src/core/idt.h index 17c5cfa..aceb064 100644 --- a/src/core/idt.h +++ b/src/core/idt.h @@ -5,8 +5,13 @@ #include "core/mem.h" #define IDT_MAX_ENTRY 200 -#define IDT_INT_GATE 0x8E00 -#define IDT_TRAP_GATE 0xEF00 +#define IDT_INT_GATE 0x0E00 +#define IDT_TRAP_GATE 0x0F00 +#define IDT_P 0x8000 +#define IDT_PRVL_0 0x0000 +#define IDT_PRVL_1 0x2000 +#define IDT_PRVL_2 0x4000 +#define IDT_PRVL_3 0x6000 typedef struct IDT_ENTRY { u16 segment; -- cgit v1.2.3