Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc bootpath_build(): parse boot path corre...
details: https://anonhg.NetBSD.org/src/rev/de8f98df66be
branches: trunk
changeset: 521777:de8f98df66be
user: pk <pk%NetBSD.org@localhost>
date: Tue Feb 05 13:54:39 2002 +0000
description:
bootpath_build(): parse boot path correctly if the boot device arguments
consists of more than one character (we still pay attention to the first
argument character only). From bt%csfps.de@localhost; PR#15495.
diffstat:
sys/arch/sparc/sparc/autoconf.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 8b2e861cf247 -r de8f98df66be sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c Tue Feb 05 13:44:01 2002 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c Tue Feb 05 13:54:39 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.161 2002/02/04 08:36:36 pk Exp $ */
+/* $NetBSD: autoconf.c,v 1.162 2002/02/05 13:54:39 pk Exp $ */
/*
* Copyright (c) 1996
@@ -525,9 +525,14 @@
cp = str2hex(++cp, &bp->val[0]);
if (*cp == ',')
cp = str2hex(++cp, &bp->val[1]);
- if (*cp == ':')
+ if (*cp == ':') {
/* XXX - we handle just one char */
- bp->val[2] = *++cp - 'a', ++cp;
+ /* skip remainder of paths */
+ /* like "ledma@f,400010:tpe" */
+ bp->val[2] = *++cp - 'a';
+ while (*++cp != '/' && *cp != '\0')
+ /*void*/;
+ }
} else {
bp->val[0] = -1; /* no #'s: assume unit 0, no
sbus offset/adddress */
Home |
Main Index |
Thread Index |
Old Index