Updated idt.h 18-interrupts

Fix to get rid any possible multiple definition errors in `18-interrupts`
This commit is contained in:
Sriram Shanmuga 2020-07-21 18:52:31 +05:30 committed by GitHub
parent 7aff64740e
commit 9915d1fc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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