Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/loongson if MEMORY_DISK_IS_ROOT is defined, ...



details:   https://anonhg.NetBSD.org/src/rev/6de07a6d7c6d
branches:  trunk
changeset: 805643:6de07a6d7c6d
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 10 14:07:26 2015 +0000

description:
if MEMORY_DISK_IS_ROOT is defined, dont try to guess the root device

diffstat:

 sys/arch/evbmips/loongson/autoconf.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (57 lines):

diff -r 7a848b83630a -r 6de07a6d7c6d sys/arch/evbmips/loongson/autoconf.c
--- a/sys/arch/evbmips/loongson/autoconf.c      Sat Jan 10 12:50:54 2015 +0000
+++ b/sys/arch/evbmips/loongson/autoconf.c      Sat Jan 10 14:07:26 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.5 2013/03/13 21:17:43 macallan Exp $    */
+/*     $NetBSD: autoconf.c,v 1.6 2015/01/10 14:07:26 jmcneill Exp $    */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -35,8 +35,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "opt_md.h"
+
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.5 2013/03/13 21:17:43 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.6 2015/01/10 14:07:26 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -46,7 +48,9 @@
 #include <sys/cpu.h>
 #include <evbmips/loongson/autoconf.h>
 
+#ifndef MEMORY_DISK_IS_ROOT
 static void    findroot(void);
+#endif
 
 enum devclass bootdev_class = DV_DULL;
 char          bootdev[16];
@@ -74,7 +78,9 @@
 void
 cpu_rootconf(void)
 {
+#ifndef MEMORY_DISK_IS_ROOT
        findroot();
+#endif
 
        printf("boot device: %s\n",
                booted_device ? device_xname(booted_device) : "<unknown>");
@@ -85,6 +91,7 @@
 extern char    bootstring[];
 extern int     netboot;
 
+#ifndef MEMORY_DISK_IS_ROOT
 static void
 findroot(void)
 {
@@ -111,6 +118,7 @@
 
        return;
 }
+#endif
 
 void
 device_register(device_t dev, void *aux)



Home | Main Index | Thread Index | Old Index