summaryrefslogtreecommitdiff
path: root/picirq.c
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-09-07 01:37:58 +0000
committerkaashoek <kaashoek>2006-09-07 01:37:58 +0000
commitf70172129c94e4d53b56fc10a7d859679b581bd2 (patch)
treef5c95ac0b9eea765d36ab0cb0c53573e2dfa0f9d /picirq.c
parentf9bc4452b5437570f1709430e9364cc3e323cf3a (diff)
downloadxv6-labs-f70172129c94e4d53b56fc10a7d859679b581bd2.tar.gz
xv6-labs-f70172129c94e4d53b56fc10a7d859679b581bd2.tar.bz2
xv6-labs-f70172129c94e4d53b56fc10a7d859679b581bd2.zip
run without lapic and ioapic, if they are not present
if no lapic available, use 8253pit for clock now xv6 runs both on qemu (uniprocessor) and bochs (uniprocessor and MP)
Diffstat (limited to 'picirq.c')
-rw-r--r--picirq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/picirq.c b/picirq.c
index 184e693..eaac053 100644
--- a/picirq.c
+++ b/picirq.c
@@ -11,9 +11,9 @@
// Current IRQ mask.
// Initial IRQ mask has interrupt 2 enabled (for slave 8259A).
-static ushort irq_mask_8259A = 0xFFFF & ~(1<<IRQ_SLAVE);
+ushort irq_mask_8259A = 0xFFFF & ~(1<<IRQ_SLAVE);
-static void
+void
irq_setmask_8259A(ushort mask)
{
irq_mask_8259A = mask;