Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc Make OF-2.x can also find root device.



details:   https://anonhg.NetBSD.org/src/rev/51a168fef342
branches:  trunk
changeset: 481900:51a168fef342
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Tue Feb 08 20:02:13 2000 +0000

description:
Make OF-2.x can also find root device.

diffstat:

 sys/arch/macppc/macppc/autoconf.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 822eb328799c -r 51a168fef342 sys/arch/macppc/macppc/autoconf.c
--- a/sys/arch/macppc/macppc/autoconf.c Tue Feb 08 18:46:03 2000 +0000
+++ b/sys/arch/macppc/macppc/autoconf.c Tue Feb 08 20:02:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.19 2000/02/04 18:29:15 tsubai Exp $     */
+/*     $NetBSD: autoconf.c,v 1.20 2000/02/08 20:02:13 tsubai Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -167,10 +167,14 @@
                        strcat(cbootpath, p);
        }
 
-       if ((p = strchr(cbootpath, ':')) != NULL) {
+       if ((p = strrchr(cbootpath, ':')) != NULL) {
                *p++ = 0;
                /* booted_partition = *p - '0';         XXX correct? */
        }
+
+       /* XXX Does this belong here, or device_register()? */
+       if ((p = strrchr(cbootpath, ',')) != NULL)
+               *p = 0;
 }
 
 #define DEVICE_IS(dev, name) \



Home | Main Index | Thread Index | Old Index