mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Updated idt.c 18-interrupts
Fix to get rid any possible multiple definition errors in `18-interrupts`
This commit is contained in:
parent
9915d1fc1b
commit
231a854b3d
@ -1,6 +1,9 @@
|
|||||||
#include "idt.h"
|
#include "idt.h"
|
||||||
#include "../kernel/util.h"
|
#include "../kernel/util.h"
|
||||||
|
|
||||||
|
idt_gate_t idt[IDT_ENTRIES];
|
||||||
|
idt_register_t idt_reg;
|
||||||
|
|
||||||
void set_idt_gate(int n, u32 handler) {
|
void set_idt_gate(int n, u32 handler) {
|
||||||
idt[n].low_offset = low_16(handler);
|
idt[n].low_offset = low_16(handler);
|
||||||
idt[n].sel = KERNEL_CS;
|
idt[n].sel = KERNEL_CS;
|
||||||
|
Loading…
Reference in New Issue
Block a user