mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Updated idt.h 18-interrupts
Fix to get rid any possible multiple definition errors in `18-interrupts`
This commit is contained in:
parent
7aff64740e
commit
9915d1fc1b
@ -28,9 +28,8 @@ typedef struct {
|
|||||||
} __attribute__((packed)) idt_register_t;
|
} __attribute__((packed)) idt_register_t;
|
||||||
|
|
||||||
#define IDT_ENTRIES 256
|
#define IDT_ENTRIES 256
|
||||||
idt_gate_t idt[IDT_ENTRIES];
|
extern idt_gate_t idt[IDT_ENTRIES];
|
||||||
idt_register_t idt_reg;
|
extern idt_register_t idt_reg;
|
||||||
|
|
||||||
|
|
||||||
/* Functions implemented in idt.c */
|
/* Functions implemented in idt.c */
|
||||||
void set_idt_gate(int n, u32 handler);
|
void set_idt_gate(int n, u32 handler);
|
||||||
|
Loading…
Reference in New Issue
Block a user