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)
/* ![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
*/
12 {
13 // mask all interrupts
14 outb(IO_PIC1+1, 0xFF);
15 outb(IO_PIC2+1, 0xFF);
16 }
17
18 //PAGEBREAK!
19 // Blank page.