ISR & IRR defines

master
E. Almqvist 3 years ago
parent 4bfd2b6b1d
commit 940b7e5751
  1. 1
      kernel/pic.c
  2. 5
      kernel/pic.h

@ -32,6 +32,7 @@ void pic_remap(uint offset_1, uint offset_2) {
} }
// disable the PIC // disable the PIC
// will probably never use this.
void pic_disable() { void pic_disable() {
outb(PIC1_DATA, 0xff); outb(PIC1_DATA, 0xff);
outb(PIC2_DATA, 0xff); outb(PIC2_DATA, 0xff);

@ -11,6 +11,7 @@
#define PIC2_CMD PIC2 #define PIC2_CMD PIC2
#define PIC2_DATA (PIC2+1) #define PIC2_DATA (PIC2+1)
// ICWx
#define ICW1_ICW4 0x01 #define ICW1_ICW4 0x01
#define ICW1_SINGLE 0x02 #define ICW1_SINGLE 0x02
#define ICW1_INTERVAL4 0x04 #define ICW1_INTERVAL4 0x04
@ -25,6 +26,10 @@
#define ICW_INIT_MASK (ICW1_INIT | ICW1_ICW4) #define ICW_INIT_MASK (ICW1_INIT | ICW1_ICW4)
// ISR & IRR
#define PIC_R_IRR 0x0a
#define PIC_R_ISR 0x0b
// Ints // Ints
#define PIC_EOI 0x20 // End-of-interupt #define PIC_EOI 0x20 // End-of-interupt

Loading…
Cancel
Save