From 457a2117706cdaee34f894e67c89da7bf29f6143 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 12 Apr 2021 10:28:04 +0200 Subject: Refactoring --- src/int/idt.h | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/int/idt.h (limited to 'src/int/idt.h') diff --git a/src/int/idt.h b/src/int/idt.h deleted file mode 100644 index 17c5cfa..0000000 --- a/src/int/idt.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef IDT_H -#define IDT_H - -#include "core/types.h" -#include "core/mem.h" - -#define IDT_MAX_ENTRY 200 -#define IDT_INT_GATE 0x8E00 -#define IDT_TRAP_GATE 0xEF00 - -typedef struct IDT_ENTRY { - u16 segment; - u32 offset; - u16 type; -} IDT_ENTRY; - -struct IDT_REGISTER { - u16 limit; - u32 base; -} __attribute__((packed)); - -/** - * Copy IDT into memory and load it - */ -void idt_init(); - -/** - * Write an IDT entry into memory - */ -void idt_write_entry(IDT_ENTRY entry,int id); - -#endif \ No newline at end of file -- cgit v1.2.3