From 2c52782bfbfeb2702bc1f5e2006a9767800a531e Mon Sep 17 00:00:00 2001 From: rahnds Date: Tue, 4 Apr 2000 02:11:47 +0000 Subject: [PATCH] support root drive detection for G4 powermac. --- sys/arch/powerpc/powerpc/autoconf.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/sys/arch/powerpc/powerpc/autoconf.c b/sys/arch/powerpc/powerpc/autoconf.c index ceae15402bd..e0e5037e4d8 100644 --- a/sys/arch/powerpc/powerpc/autoconf.c +++ b/sys/arch/powerpc/powerpc/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.9 2000/01/23 17:32:02 rahnds Exp $ */ +/* $OpenBSD: autoconf.c,v 1.10 2000/04/04 02:11:47 rahnds Exp $ */ /* * Copyright (c) 1996, 1997 Per Fogelstrom * Copyright (c) 1995 Theo de Raadt @@ -41,7 +41,7 @@ * from: Utah Hdr: autoconf.c 1.31 91/01/21 * * from: @(#)autoconf.c 8.1 (Berkeley) 6/10/93 - * $Id: autoconf.c,v 1.9 2000/01/23 17:32:02 rahnds Exp $ + * $Id: autoconf.c,v 1.10 2000/04/04 02:11:47 rahnds Exp $ */ /* @@ -533,13 +533,16 @@ findtype(s) char **s; { static struct devmap devmap[] = { - { "/pci", NULL, T_BUS }, - { "/mac-io", NULL, T_BUS }, - { "/scsi@", "sd", T_SCSI }, - { "/ide@", "wd", T_IDE }, - { "/ide", "wd", T_IDE }, - { "/disk@", "sd", T_DISK }, - { "/disk", "wd", T_DISK }, + { "/pci@", NULL, T_BUS }, + { "/pci", NULL, T_BUS }, + { "/mac-io@", NULL, T_BUS }, + { "/mac-io", NULL, T_BUS }, + { "/@", NULL, T_BUS }, + { "/scsi@", "sd", T_SCSI }, + { "/ide", "wd", T_IDE }, + { "/ata", "wd", T_IDE }, + { "/disk@", "sd", T_DISK }, + { "/disk", "wd", T_DISK }, { NULL, NULL } }; struct devmap *dp = &devmap[0]; @@ -573,6 +576,9 @@ makebootdev(bp) cp = bp; do { + while(*cp && *cp != '/') { + cp++; + } dp = findtype(&cp); if (!dp->att) { printf("Warning: boot device unrecognized: %s\n", bp); -- 2.20.1