summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1998-10-25 01:30:16 +0000
committerpaul <paul@FreeBSD.org>1998-10-25 01:30:16 +0000
commit138aad3569cae2fd5554827209bd5bd5ca9799cb (patch)
tree2c109035b5e5064f7e3dd409270a70ede771fdad /sys
parentb628626c229182975efa27cf4a49cce8aa27723e (diff)
downloadFreeBSD-src-138aad3569cae2fd5554827209bd5bd5ca9799cb.zip
FreeBSD-src-138aad3569cae2fd5554827209bd5bd5ca9799cb.tar.gz
Fix the interrupt mask generated for enabling/disabling interrupts 8 to 15.
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/isa/isa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/alpha/isa/isa.c b/sys/alpha/isa/isa.c
index 1437a2a..a93e3a6 100644
--- a/sys/alpha/isa/isa.c
+++ b/sys/alpha/isa/isa.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: isa.c,v 1.3 1998/08/10 07:53:59 dfr Exp $
+ * $Id: isa.c,v 1.4 1998/09/16 08:23:51 dfr Exp $
*/
#include <sys/param.h>
@@ -130,7 +130,7 @@ isa_intr_enable(int irq)
if (irq < 8)
outb(IO_ICU1+1, inb(IO_ICU1+1) & ~(1 << irq));
else
- outb(IO_ICU2+1, inb(IO_ICU2+1) & ~(1 << irq));
+ outb(IO_ICU2+1, inb(IO_ICU2+1) & ~(1 << (irq - 8)));
splx(s);
}
@@ -141,7 +141,7 @@ isa_intr_disable(int irq)
if (irq < 8)
outb(IO_ICU1+1, inb(IO_ICU1+1) | (1 << irq));
else
- outb(IO_ICU2+1, inb(IO_ICU2+1) | (1 << irq));
+ outb(IO_ICU2+1, inb(IO_ICU2+1) | (1 << (irq - 8)));
splx(s);
}
OpenPOWER on IntegriCloud