Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/vr Don't clear PCIC_INTR_ENABLE here, eithe...
details: https://anonhg.NetBSD.org/src/rev/2bec3fbc462e
branches: trunk
changeset: 551253:2bec3fbc462e
user: mycroft <mycroft%NetBSD.org@localhost>
date: Tue Sep 02 22:48:30 2003 +0000
description:
Don't clear PCIC_INTR_ENABLE here, either -- not appropriate.
diffstat:
sys/arch/hpcmips/vr/vrecu.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 87a64397d802 -r 2bec3fbc462e sys/arch/hpcmips/vr/vrecu.c
--- a/sys/arch/hpcmips/vr/vrecu.c Tue Sep 02 22:44:08 2003 +0000
+++ b/sys/arch/hpcmips/vr/vrecu.c Tue Sep 02 22:48:30 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vrecu.c,v 1.2 2003/07/15 02:29:35 lukem Exp $ */
+/* $NetBSD: vrecu.c,v 1.3 2003/09/02 22:48:30 mycroft Exp $ */
/*
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vrecu.c,v 1.2 2003/07/15 02:29:35 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vrecu.c,v 1.3 2003/09/02 22:48:30 mycroft Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -222,9 +222,8 @@
h->ih_irq = irq;
if (h->flags & PCIC_FLAG_ENABLED) {
r = pcic_read(h, PCIC_INTR);
- r &= ~(PCIC_INTR_IRQ_MASK | PCIC_INTR_ENABLE);
- r |= irq;
- pcic_write(h, PCIC_INTR, r);
+ r &= ~PCIC_INTR_IRQ_MASK;
+ pcic_write(h, PCIC_INTR, r | irq);
}
vsc->sc_intr_mask &= ~(1 << irq);
Home |
Main Index |
Thread Index |
Old Index