From 4f14d8d1e594bdf45e36a035f6c3fd4ca959711e Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 9 Aug 2017 07:43:06 -0400 Subject: Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list. --- picirq.c | 70 +--------------------------------------------------------------- 1 file changed, 1 insertion(+), 69 deletions(-) (limited to 'picirq.c') diff --git a/picirq.c b/picirq.c index 69785a7..e26957f 100644 --- a/picirq.c +++ b/picirq.c @@ -1,5 +1,3 @@ -// Intel 8259A programmable interrupt controllers. - #include "types.h" #include "x86.h" #include "traps.h" @@ -8,79 +6,13 @@ #define IO_PIC1 0x20 // Master (IRQs 0-7) #define IO_PIC2 0xA0 // Slave (IRQs 8-15) -#define IRQ_SLAVE 2 // IRQ at which slave connects to master - -// Current IRQ mask. -// Initial IRQ mask has interrupt 2 enabled (for slave 8259A). -static ushort irqmask = 0xFFFF & ~(1<> 8); -} - -void -picenable(int irq) -{ - picsetmask(irqmask & ~(1<