From 9915d1fc1b15247e4f4c9b19342a48f9f53ad526 Mon Sep 17 00:00:00 2001 From: Sriram Shanmuga <40335840+RaamyPi@users.noreply.github.com> Date: Tue, 21 Jul 2020 18:52:31 +0530 Subject: [PATCH] Updated idt.h `18-interrupts` Fix to get rid any possible multiple definition errors in `18-interrupts` --- 18-interrupts/cpu/idt.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/18-interrupts/cpu/idt.h b/18-interrupts/cpu/idt.h index 27bfac5..e8549a3 100644 --- a/18-interrupts/cpu/idt.h +++ b/18-interrupts/cpu/idt.h @@ -28,9 +28,8 @@ typedef struct { } __attribute__((packed)) idt_register_t; #define IDT_ENTRIES 256 -idt_gate_t idt[IDT_ENTRIES]; -idt_register_t idt_reg; - +extern idt_gate_t idt[IDT_ENTRIES]; +extern idt_register_t idt_reg; /* Functions implemented in idt.c */ void set_idt_gate(int n, u32 handler);