From 26be64697a65c695b3652f1adaa1dbf816212d92 Mon Sep 17 00:00:00 2001 From: Akshaylal S <40035782+Akshaylal@users.noreply.github.com> Date: Mon, 24 May 2021 20:45:54 +0530 Subject: [PATCH] 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 ... --- 18-interrupts/cpu/idt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/18-interrupts/cpu/idt.c b/18-interrupts/cpu/idt.c index 999d0c9..cdb7e99 100644 --- a/18-interrupts/cpu/idt.c +++ b/18-interrupts/cpu/idt.c @@ -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;