Module Name: src
Committed By: cliff
Date: Thu Jun 10 00:43:06 UTC 2010
Modified Files:
src/sys/arch/evbmips/rmixl [matt-nb5-mips64]: autoconf.c
Log Message:
- in findroot(), add "sd" to search for root
we are kind of lying about 'booted_device' here,
until we figure out how to get booted dev info from the firmware.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/evbmips/rmixl/autoconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbmips/rmixl/autoconf.c
diff -u src/sys/arch/evbmips/rmixl/autoconf.c:1.1.2.2 src/sys/arch/evbmips/rmixl/autoconf.c:1.1.2.3
--- src/sys/arch/evbmips/rmixl/autoconf.c:1.1.2.2 Thu Jan 14 00:40:35 2010
+++ src/sys/arch/evbmips/rmixl/autoconf.c Thu Jun 10 00:43:06 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.1.2.2 2010/01/14 00:40:35 matt Exp $ */
+/* $NetBSD: autoconf.c,v 1.1.2.3 2010/06/10 00:43:06 cliff Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.1.2.2 2010/01/14 00:40:35 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.1.2.3 2010/06/10 00:43:06 cliff Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -92,7 +92,7 @@
for (dv = TAILQ_FIRST(&alldevs); dv != NULL;
dv = TAILQ_NEXT(dv, dv_list))
if (device_class(dv) == DV_DISK &&
- device_is_a(dv, "wd"))
+ (device_is_a(dv, "wd") || device_is_a(dv, "sd")))
booted_device = dv;
/*