Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/zaurus/zaurus Don't check device numbers.



details:   https://anonhg.NetBSD.org/src/rev/63b4f30f2e63
branches:  trunk
changeset: 764805:63b4f30f2e63
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Thu May 05 08:46:12 2011 +0000

description:
Don't check device numbers.

diffstat:

 sys/arch/zaurus/zaurus/autoconf.c |  15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diffs (36 lines):

diff -r d8b87e1734e2 -r 63b4f30f2e63 sys/arch/zaurus/zaurus/autoconf.c
--- a/sys/arch/zaurus/zaurus/autoconf.c Thu May 05 08:21:29 2011 +0000
+++ b/sys/arch/zaurus/zaurus/autoconf.c Thu May 05 08:46:12 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.9 2009/11/05 18:17:34 dyoung Exp $      */
+/*     $NetBSD: autoconf.c,v 1.10 2011/05/05 08:46:12 nonaka Exp $     */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.9 2009/11/05 18:17:34 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.10 2011/05/05 08:46:12 nonaka Exp $");
 
 #include "opt_md.h"
 
@@ -192,15 +192,8 @@
                                continue;
 
                        if (is_valid_disk(dv)) {
-                               /*
-                                * Don't trust BIOS device numbers, try
-                                * to match the information passed by the
-                                * boot loader instead.
-                                */
-                               if ((bid->biosdev & 0x80) == 0 ||
-                                   match_bootdisk(dv, bid) == 0)
-                                       continue;
-                               goto bootdisk_found;
+                               if (match_bootdisk(dv, bid))
+                                       goto bootdisk_found;
                        }
                        continue;
 



Home | Main Index | Thread Index | Old Index