Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev Probe mcclock only on 425e to avoid an ex...



details:   https://anonhg.NetBSD.org/src/rev/2ae353c2c17c
branches:  trunk
changeset: 795801:2ae353c2c17c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Apr 30 15:53:09 2014 +0000

description:
Probe mcclock only on 425e to avoid an extra "not configured" message.

diffstat:

 sys/arch/hp300/dev/frodo.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 47f2bc26ef83 -r 2ae353c2c17c sys/arch/hp300/dev/frodo.c
--- a/sys/arch/hp300/dev/frodo.c        Wed Apr 30 11:51:51 2014 +0000
+++ b/sys/arch/hp300/dev/frodo.c        Wed Apr 30 15:53:09 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: frodo.c,v 1.31 2014/04/19 05:37:54 tsutsui Exp $       */
+/*     $NetBSD: frodo.c,v 1.32 2014/04/30 15:53:09 tsutsui Exp $       */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: frodo.c,v 1.31 2014/04/19 05:37:54 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: frodo.c,v 1.32 2014/04/30 15:53:09 tsutsui Exp $");
 
 #define        _HP300_INTR_H_PRIVATE
 
@@ -197,6 +197,11 @@
                if (fd->fd_offset == FRODO_APCI_OFFSET(1) &&
                    mmuid != MMUID_425_E)
                        continue;
+               /*
+                * The mcclock is available only on a 425e.
+                */
+               if (fd->fd_offset == FRODO_CALENDAR && mmuid != MMUID_425_E)
+                       continue;
                fa.fa_name = fd->fd_name;
                fa.fa_bst = bst;
                fa.fa_base = ia->ia_iobase;



Home | Main Index | Thread Index | Old Index