Moved idt and idt reg from idt.h to idt.c

Moved idt and idt reg from idt.h to idt.c to fix the make error: multiple definition of ...
pull/210/head
Akshaylal S 3 years ago committed by GitHub
parent 7aff64740e
commit 26be64697a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save