Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/iyonix/iyonix set base_year_is_2k on dsrtc so we're...



details:   https://anonhg.NetBSD.org/src/rev/8762f9262022
branches:  trunk
changeset: 995402:8762f9262022
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Dec 20 21:38:23 2018 +0000

description:
set base_year_is_2k on dsrtc so we're compatible with RISC OS

diffstat:

 sys/arch/iyonix/iyonix/autoconf.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d31e24d542ac -r 8762f9262022 sys/arch/iyonix/iyonix/autoconf.c
--- a/sys/arch/iyonix/iyonix/autoconf.c Thu Dec 20 21:36:53 2018 +0000
+++ b/sys/arch/iyonix/iyonix/autoconf.c Thu Dec 20 21:38:23 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.16 2018/11/21 20:36:41 macallan Exp $   */
+/*     $NetBSD: autoconf.c,v 1.17 2018/12/20 21:38:23 macallan Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.16 2018/11/21 20:36:41 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.17 2018/12/20 21:38:23 macallan Exp $");
 
 #include "opt_md.h"
 
@@ -187,4 +187,8 @@
                        prop_dictionary_set_bool(dict, "is_bgr", 1);
                prop_dictionary_set_uint32(dict, "address", fbaddr);
        }
+       if (device_is_a(dev, "dsrtc")) {
+               prop_dictionary_t dict = device_properties(dev);
+               prop_dictionary_set_bool(dict, "base_year_is_2000", 1);
+       }
 }



Home | Main Index | Thread Index | Old Index