diff options
author | paul <paul@FreeBSD.org> | 1998-10-25 01:30:16 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 1998-10-25 01:30:16 +0000 |
commit | 138aad3569cae2fd5554827209bd5bd5ca9799cb (patch) | |
tree | 2c109035b5e5064f7e3dd409270a70ede771fdad /sys/alpha | |
parent | b628626c229182975efa27cf4a49cce8aa27723e (diff) | |
download | FreeBSD-src-138aad3569cae2fd5554827209bd5bd5ca9799cb.zip FreeBSD-src-138aad3569cae2fd5554827209bd5bd5ca9799cb.tar.gz |
Fix the interrupt mask generated for enabling/disabling interrupts 8 to 15.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/isa/isa.c | 6 |
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); } |