moved idt and idt_reg from idt.h to idt.c

This commit is contained in:
Akshaylal 2021-05-24 20:12:12 +05:30
parent b760753912
commit 6830827198
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,9 @@
#include "idt.h"
#include "../kernel/util.h"
idt_gate_t idt[IDT_ENTRIES];
idt_register_t idt_reg;
void set_idt_gate(int n, u32 handler) {
idt[n].low_offset = low_16(handler);
idt[n].sel = KERNEL_CS;

View File

@ -28,8 +28,6 @@ typedef struct {
} __attribute__((packed)) idt_register_t;
#define IDT_ENTRIES 256
idt_gate_t idt[IDT_ENTRIES];
idt_register_t idt_reg;
/* Functions implemented in idt.c */