diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2006-05-28 19:09:40 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2006-05-28 19:09:40 +0000 |
commit | a4d084ed784ffeb868ca189d4a1a06802fc5f1fd (patch) | |
tree | 449d0ee787b5d8b7b6f166b7fd33249e663ca301 | |
parent | e9b5733ff79f6e2232565be8a928211fa0a8c3a1 (diff) |
Can't call directly back into the prom if we "exit" at the root
device prompt. We need to call shutdownhooks which will set the sab
back into the mode the prom likes (I hate this chip)
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 52423fffccb..5f244ab0abd 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.50 2006/05/28 18:04:41 jason Exp $ */ +/* $OpenBSD: autoconf.c,v 1.51 2006/05/28 19:09:39 jason Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -574,8 +574,10 @@ setroot() goto gotswap; } } - if (len == 4 && strncmp(buf, "exit", 4) == 0) + if (len == 4 && strncmp(buf, "exit", 4) == 0) { + doshutdownhooks(); OF_exit(); + } dv = getdisk(buf, len, bp?bp->val[2]:0, &nrootdev); if (dv != NULL) { bootdv = dv; |