From 366189214ea663b20a0323b65661987a7de6f56d Mon Sep 17 00:00:00 2001 From: kaashoek Date: Fri, 4 Aug 2006 18:23:23 +0000 Subject: [PATCH] nit --- defs.h | 2 -- picirq.c | 36 ++++++++++++++++++------------------ 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/defs.h b/defs.h index 1c28cc0..fead1d2 100644 --- a/defs.h +++ b/defs.h @@ -40,8 +40,6 @@ int strncmp(const char *p, const char *q, uint n); void syscall(void); // picirq.c -extern ushort irq_mask_8259A; -void irq_setmask_8259A(ushort mask); void pic_init(void); // mp.c diff --git a/picirq.c b/picirq.c index e774e6d..9fd7167 100644 --- a/picirq.c +++ b/picirq.c @@ -12,7 +12,24 @@ // Current IRQ mask. // Initial IRQ mask has interrupt 2 enabled (for slave 8259A). -ushort irq_mask_8259A = 0xFFFF & ~(1<> 8)); + + cprintf("%d: enabled interrupts:", cpu()); + + for (i = 0; i < 16; i++) + if (~mask & (1<> 8)); - - cprintf("%d: enabled interrupts:", cpu()); - - for (i = 0; i < 16; i++) - if (~mask & (1<