Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm26/iobus In ioc_attach(), use ioc_irq_setmask() ...



details:   https://anonhg.NetBSD.org/src/rev/56d77d297c8d
branches:  trunk
changeset: 514200:56d77d297c8d
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat Aug 25 17:59:38 2001 +0000

description:
In ioc_attach(), use ioc_irq_setmask() and ioc_fiq_setmask() rather than
twiddling registers directly.  Also, remove an outdated comment.

diffstat:

 sys/arch/arm26/iobus/ioc.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (34 lines):

diff -r ad2f467b783c -r 56d77d297c8d sys/arch/arm26/iobus/ioc.c
--- a/sys/arch/arm26/iobus/ioc.c        Sat Aug 25 17:55:24 2001 +0000
+++ b/sys/arch/arm26/iobus/ioc.c        Sat Aug 25 17:59:38 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ioc.c,v 1.13 2001/08/19 15:27:44 bjh21 Exp $ */
+/* $NetBSD: ioc.c,v 1.14 2001/08/25 17:59:38 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 Ben Harris
@@ -33,7 +33,7 @@
 
 #include <sys/param.h>
 
-__RCSID("$NetBSD: ioc.c,v 1.13 2001/08/19 15:27:44 bjh21 Exp $");
+__RCSID("$NetBSD: ioc.c,v 1.14 2001/08/25 17:59:38 bjh21 Exp $");
 
 #include <sys/device.h>
 #include <sys/kernel.h>
@@ -117,13 +117,9 @@
        /*
         * IRQ/FIQ: mask out all, leave clearing latched interrupts
         * till someone asks.
-        *
-        * In fact, the masks will be in this state already.  See
-        * start.c for details.
         */
-       bus_space_write_1(bst, bsh, IOC_IRQMSKA, 0x00);
-       bus_space_write_1(bst, bsh, IOC_IRQMSKB, 0x00);
-       bus_space_write_1(bst, bsh, IOC_FIQMSK,  0x00);
+       ioc_irq_setmask(0);
+       ioc_fiq_setmask(0);
        /*-
         * Timers:
         * Timers 0/1 are set up by ioc_initclocks (called by cpu_initclocks).



Home | Main Index | Thread Index | Old Index