Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcsh/hpcsh Set rtc_offset from bootinfo passed by ...



details:   https://anonhg.NetBSD.org/src/rev/aae10d8606ff
branches:  trunk
changeset: 559738:aae10d8606ff
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Mar 23 03:36:32 2004 +0000

description:
Set rtc_offset from bootinfo passed by hpcboot.exe unless overridden
with option RTC_OFFSET.  From hpcmips.

diffstat:

 sys/arch/hpcsh/hpcsh/machdep.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 8220f204c082 -r aae10d8606ff sys/arch/hpcsh/hpcsh/machdep.c
--- a/sys/arch/hpcsh/hpcsh/machdep.c    Tue Mar 23 02:34:10 2004 +0000
+++ b/sys/arch/hpcsh/hpcsh/machdep.c    Tue Mar 23 03:36:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.44 2003/12/04 19:38:21 atatat Exp $      */
+/*     $NetBSD: machdep.c,v 1.45 2004/03/23 03:36:32 uwe Exp $ */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2003/12/04 19:38:21 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2004/03/23 03:36:32 uwe Exp $");
 
 #include "opt_md.h"
 #include "opt_ddb.h"
@@ -205,6 +205,16 @@
        else if (platid_match(&platid, &platid_mask_CPU_SH_4))
                sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7750);
 
+#ifndef RTC_OFFSET
+       /*
+        * rtc_offset from bootinfo.timezone set by hpcboot.exe
+        */
+       if (rtc_offset == 0
+           && bootinfo->timezone > (-12*60)
+           && bootinfo->timezone <= (12*60))
+               rtc_offset = bootinfo->timezone;
+#endif
+
        /* Start to determine heap area */
        kernend = (vaddr_t)sh3_round_page(end + symbolsize);
 



Home | Main Index | Thread Index | Old Index