diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-11-10 15:14:10 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-11-10 15:14:10 +0000 |
commit | 0d677d052901ed6ca37d0a4f13e4dcc7c847ef4c (patch) | |
tree | f8f30e979447af38c4b35682e15c2f1459cdfa25 /sys/arch/i386/pci/rccosb4.c | |
parent | 19ab602563366a1d3a1ba73ec13c9185d26d4cfc (diff) |
only 4 bits of an irq number are valid to set (just in case)
Diffstat (limited to 'sys/arch/i386/pci/rccosb4.c')
-rw-r--r-- | sys/arch/i386/pci/rccosb4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/pci/rccosb4.c b/sys/arch/i386/pci/rccosb4.c index cf91d70cef0..fcef7bbcc6b 100644 --- a/sys/arch/i386/pci/rccosb4.c +++ b/sys/arch/i386/pci/rccosb4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rccosb4.c,v 1.2 2005/10/27 20:01:13 mickey Exp $ */ +/* $OpenBSD: rccosb4.c,v 1.3 2005/11/10 15:14:09 mickey Exp $ */ /* * Copyright (c) 2004,2005 Michael Shalayeff @@ -125,11 +125,11 @@ osb4_set_intr(pciintr_icu_handle_t v, int clink, int irq) { struct osb4_handle *ph = v; - if (!OSB4_LEGAL_LINK(clink) || !OSB4_LEGAL_IRQ(irq)) + if (!OSB4_LEGAL_LINK(clink) || !OSB4_LEGAL_IRQ(irq & 0xf)) return (1); bus_space_write_1(ph->osb4_iot, ph->osb4_ioh, 0, clink); - bus_space_write_1(ph->osb4_iot, ph->osb4_ioh, 1, irq); + bus_space_write_1(ph->osb4_iot, ph->osb4_ioh, 1, irq & 0xf); return (0); } |