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 Make detection of root on wedges (dk(...



details:   https://anonhg.NetBSD.org/src/rev/712ef629e45e
branches:  trunk
changeset: 779719:712ef629e45e
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Jun 13 20:04:30 2012 +0000

description:
Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for zaurus.

diffstat:

 sys/arch/zaurus/zaurus/autoconf.c |  22 ++++++----------------
 1 files changed, 6 insertions(+), 16 deletions(-)

diffs (64 lines):

diff -r ba6a5b38f81a -r 712ef629e45e sys/arch/zaurus/zaurus/autoconf.c
--- a/sys/arch/zaurus/zaurus/autoconf.c Wed Jun 13 19:44:14 2012 +0000
+++ b/sys/arch/zaurus/zaurus/autoconf.c Wed Jun 13 20:04:30 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.10 2011/05/05 08:46:12 nonaka Exp $     */
+/*     $NetBSD: autoconf.c,v 1.11 2012/06/13 20:04:30 mlelstv Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.10 2011/05/05 08:46:12 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.11 2012/06/13 20:04:30 mlelstv Exp $");
 
 #include "opt_md.h"
 
@@ -48,7 +48,6 @@
 #include <machine/bootinfo.h>
 #include <machine/config_hook.h>
 
-static void handle_wedges(device_t dv, int par);
 static int is_valid_disk(device_t dv);
 static int match_bootdisk(device_t dv, struct btinfo_bootdisk *bid);
 static void findroot(void);
@@ -69,17 +68,6 @@
        spl0();
 }
 
-static void
-handle_wedges(device_t dv, int par)
-{
-
-       if (config_handle_wedges(dv, par) == 0)
-               return;
-
-       booted_device = dv;
-       booted_partition = par;
-}
-
 static int
 is_valid_disk(device_t dv)
 {
@@ -168,7 +156,8 @@
 
                        if (strncmp(cd->cf_name, biv->devname, len) == 0 &&
                            biv->devname[len] - '0' == cd->cf_unit) {
-                               handle_wedges(dv, biv->devname[len + 1] - 'a');
+                               booted_device = dv;
+                               booted_partition = biv->devname[len + 1] - 'a';
                                break;
                        }
                }
@@ -205,7 +194,8 @@
                                    device_xname(dv));
                                continue;
                        }
-                       handle_wedges(dv, bid->partition);
+                       booted_device = dv;
+                       booted_partition = bid->partition;
                }
                deviter_release(&di);
 



Home | Main Index | Thread Index | Old Index