summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/powerpc/autoconf.c
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1998-08-06 15:04:07 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1998-08-06 15:04:07 +0000
commitf2eb56e84359146c0b65ee6d6d2a05b37cb15de3 (patch)
tree680bf4b641876eebf5553230c3f45cc160a5df6b /sys/arch/powerpc/powerpc/autoconf.c
parent205a31e70c1419a091cf12bb5cdb3693dfecf842 (diff)
Some small fixes for non ofw systems
Diffstat (limited to 'sys/arch/powerpc/powerpc/autoconf.c')
-rw-r--r--sys/arch/powerpc/powerpc/autoconf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/powerpc/powerpc/autoconf.c b/sys/arch/powerpc/powerpc/autoconf.c
index 4ea12832c49..1e47d7a851e 100644
--- a/sys/arch/powerpc/powerpc/autoconf.c
+++ b/sys/arch/powerpc/powerpc/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.5 1998/05/29 04:15:37 rahnds Exp $ */
+/* $OpenBSD: autoconf.c,v 1.6 1998/08/06 15:04:05 pefo 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.5 1998/05/29 04:15:37 rahnds Exp $
+ * $Id: autoconf.c,v 1.6 1998/08/06 15:04:05 pefo Exp $
*/
/*
@@ -93,7 +93,9 @@ configure()
(void)splhigh(); /* To be really sure.. */
if(config_rootfound("mainbus", "mainbus") == 0)
panic("no mainbus found");
- ofrootfound();
+ if(system_type == OFWMACH) {
+ ofrootfound();
+ }
(void)spl0();
setroot();