From 9c5a2e4c4f28b5ccad97ba01105a6a578f413e57 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 1 Jun 2007 19:25:11 +0000 Subject: some architectures called setroot() from cpu_configure(), *way* before some subsystems were enabled. others used a *md_diskconf -> diskconf() method to make sure init_main could "do late setroot". Change all architectures to have diskconf(), use it directly & late. tested by todd and myself on most architectures, ok miod too --- sys/arch/sparc64/sparc64/autoconf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 00b3000f4dd..428e45c3eaf 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.66 2007/05/13 09:16:05 kettenis Exp $ */ +/* $OpenBSD: autoconf.c,v 1.67 2007/06/01 19:25:10 deraadt Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -111,7 +111,6 @@ static int mbprint(void *, const char *); void sync_crash(void); int mainbus_match(struct device *, void *, void *); static void mainbus_attach(struct device *, struct device *, void *); -void diskconf(void); struct device *booted_device; struct bootpath bootpath[8]; @@ -496,8 +495,6 @@ cpu_configure() #endif (void)spl0(); - - md_diskconf = diskconf; cold = 0; } -- cgit v1.2.3