pic: enable legacy pic serial interrupts

This commit is contained in:
Michael Shaw 2023-03-14 04:25:06 -04:00
commit 9a4ff385bd
12 changed files with 201 additions and 33 deletions

View file

@ -11,7 +11,7 @@
#ifndef __ASM__
#include <stdint.h>
#include <kernel/common.h>
struct irqdesc {
uint16_t offset_low;
@ -21,14 +21,16 @@ struct irqdesc {
uint16_t offset_mid;
uint32_t offset_high;
uint32_t reserved;
};
} PACKED;
struct idtr {
uint16_t size;
uint64_t offset;
};
} PACKED;
void idt_init();
void cli();
void sti();
extern struct idtr __idtr;
extern struct irqdesc __idt[IDT_NUM_VECTORS];