diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2007-10-14 11:18:43 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2007-10-14 11:18:43 +0000 |
commit | 542ada78f8c442e7ab00683b4747880fa8ed0450 (patch) | |
tree | 02d951368746b38af4438e00a96df2eb75ec026c /sys/arch/sgi | |
parent | f5632bb3613ab21fe000ee1c5f6b89b8056f420c (diff) |
Disable timer/compare interrupts on the macebus. This prevents interrupt
storms from occurring on IRQ 6. ok miod@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/localbus/macebus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c index eab0e9a23f6..0d87778b3db 100644 --- a/sys/arch/sgi/localbus/macebus.c +++ b/sys/arch/sgi/localbus/macebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macebus.c,v 1.28 2007/10/13 06:25:48 miod Exp $ */ +/* $OpenBSD: macebus.c,v 1.29 2007/10/14 11:18:42 jsing Exp $ */ /* * Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se) @@ -240,7 +240,9 @@ macebusattach(struct device *parent, struct device *self, void *aux) return; } - bus_space_write_8(&macebus_tag, mace_h, MACE_ISA_INT_MASK, 0xffffffff); + /* Turn on all interrupts except for MACE compare/timer. */ + bus_space_write_8(&macebus_tag, mace_h, MACE_ISA_INT_MASK, + 0xffffffff & ~MACE_ISA_INT_TIMER); bus_space_write_8(&macebus_tag, mace_h, MACE_ISA_INT_STAT, 0); /* |