2006-06-16 20:29:25 +00:00
|
|
|
#include "types.h"
|
|
|
|
#include "x86.h"
|
2006-09-03 15:39:29 +00:00
|
|
|
#include "traps.h"
|
2006-06-16 20:29:25 +00:00
|
|
|
|
2007-08-28 19:04:36 +00:00
|
|
|
// I/O Addresses of the two programmable interrupt controllers
|
2006-09-06 17:04:06 +00:00
|
|
|
#define IO_PIC1 0x20 // Master (IRQs 0-7)
|
|
|
|
#define IO_PIC2 0xA0 // Slave (IRQs 8-15)
|
2006-07-05 20:00:14 +00:00
|
|
|
|
2017-08-09 11:43:06 +00:00
|
|
|
// Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware.
|
2006-06-16 20:29:25 +00:00
|
|
|
void
|
2009-03-08 22:07:13 +00:00
|
|
|
picinit(void)
|
2006-06-16 20:29:25 +00:00
|
|
|
{
|
2006-07-05 20:00:14 +00:00
|
|
|
// mask all interrupts
|
|
|
|
outb(IO_PIC1+1, 0xFF);
|
|
|
|
outb(IO_PIC2+1, 0xFF);
|
2006-06-16 20:29:25 +00:00
|
|
|
}
|
2016-09-02 19:27:28 +00:00
|
|
|
|
|
|
|
//PAGEBREAK!
|
|
|
|
// Blank page.
|