1 | #include "types.h" |
---|---|
2 | #include "x86.h" |
3 | #include "traps.h" |
4 | |
5 | // I/O Addresses of the two programmable interrupt controllers |
6 | #define IO_PIC1 0x20 // Master (IRQs 0-7) |
7 | #define IO_PIC2 0xA0 // Slave (IRQs 8-15) |
8 | |
9 | // Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware. |
10 | void |
11 | picinit(void) |
12 | { |
13 | // mask all interrupts |
14 | outb(IO_PIC1+1, 0xFF); |
15 | outb(IO_PIC2+1, 0xFF); |
16 | } |
17 | |
18 | //PAGEBREAK! |
19 | // Blank page. |
20 |