pic: enable legacy pic serial interrupts
This commit is contained in:
parent
667d01e418
commit
9a4ff385bd
12 changed files with 201 additions and 33 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue