diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-01 19:25:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-01 19:25:11 +0000 |
commit | 9c5a2e4c4f28b5ccad97ba01105a6a578f413e57 (patch) | |
tree | 83a977fda25aa6268bb006b9257444599adee9b5 /sys/arch/alpha | |
parent | fb46e3f564238bbc25c79e1509ce9b3484d74b33 (diff) |
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
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/autoconf.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/arch/alpha/alpha/autoconf.c b/sys/arch/alpha/alpha/autoconf.c index ab9cd83d056..112f8aa12a3 100644 --- a/sys/arch/alpha/alpha/autoconf.c +++ b/sys/arch/alpha/alpha/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.30 2007/05/04 19:30:53 deraadt Exp $ */ +/* $OpenBSD: autoconf.c,v 1.31 2007/06/01 19:25:09 deraadt Exp $ */ /* $NetBSD: autoconf.c,v 1.16 1996/11/13 21:13:04 cgd Exp $ */ /* @@ -76,9 +76,6 @@ int atoi(char *); void cpu_configure() { - struct device *bootdv; - int bootpartition; - parse_prom_bootdev(); softintr_init(); @@ -94,6 +91,14 @@ cpu_configure() (void)spl0(); hwrpb_restart_setup(); + cold = 0; +} + +void +diskconf(void) +{ + struct device *bootdv; + int bootpartition; if (booted_device == NULL) printf("WARNING: can't figure what device matches \"%s\"\n", @@ -103,7 +108,6 @@ cpu_configure() setroot(bootdv, bootpartition, RB_USERREQ); dumpconf(); - cold = 0; } void |