Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/dev Apply patches for the NC ... not really i...



details:   https://anonhg.NetBSD.org/src/rev/a566c7cdb134
branches:  trunk
changeset: 508083:a566c7cdb134
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Thu Apr 05 22:33:12 2001 +0000

description:
Apply patches for the NC ... not really in the line of the merge but at least
its in the source tree for now.

diffstat:

 sys/arch/arm32/dev/todclock.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r be25d66195e1 -r a566c7cdb134 sys/arch/arm32/dev/todclock.c
--- a/sys/arch/arm32/dev/todclock.c     Thu Apr 05 22:03:57 2001 +0000
+++ b/sys/arch/arm32/dev/todclock.c     Thu Apr 05 22:33:12 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: todclock.c,v 1.7 2000/02/19 00:27:16 tsutsui Exp $     */
+/*     $NetBSD: todclock.c,v 1.8 2001/04/05 22:33:12 reinoud Exp $     */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -196,7 +196,11 @@
 
        /* We need a todclock device and should always have one */
        if (!todclock_sc)
+#ifdef NC
+               return;
+#else
                panic("resettodr: No todclock device attached\n");
+#endif /* NC */
 
        /* Abort early if there is not actually an RTC write routine */
        if (todclock_sc->sc_rtc_write == NULL)
@@ -273,8 +277,10 @@
         */
 
        /* We expect a todclock device */
+#ifndef NC
        if (!todclock_sc)
                panic("inittodr: No todclock device attached\n");
+#endif /* NC */
 
        /* Use the suggested time as a fall back */
        time.tv_sec = base;



Home | Main Index | Thread Index | Old Index