summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2005-10-15 21:45:01 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2005-10-15 21:45:01 +0000
commite9ea21dd88b32a88f173a85c6e80193de34e2074 (patch)
treea5ddf1a7940f67fe1f1d9264fec179afd4c80f23 /sys
parentd3636dd77fa8089a53c8f4789ecbb8b2c958f110 (diff)
Fall back on OF to reboot/power down.
commit drahn@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/macppc/machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c
index 6538e899c26..ed44faeac4d 100644
--- a/sys/arch/macppc/macppc/machdep.c
+++ b/sys/arch/macppc/macppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.78 2005/10/15 15:01:23 martin Exp $ */
+/* $OpenBSD: machdep.c,v 1.79 2005/10/15 21:45:00 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -990,7 +990,6 @@ void
boot(int howto)
{
static int syncing;
- static char str[256];
boothowto = howto;
if (!cold && !(howto & RB_NOSYNC) && !syncing) {
@@ -1019,8 +1018,9 @@ boot(int howto)
#if NADB > 0
delay(1000000);
adb_poweroff();
- printf("WARNING: powerdown failed!\n");
+ printf("WARNING: adb powerdown failed!\n");
#endif
+ OF_interpret("shut-down", 0);
}
printf("halted\n\n");
@@ -1035,8 +1035,8 @@ boot(int howto)
adb_restart(); /* not return */
#endif
+ OF_interpret("reset-all", 0);
OF_exit();
- (fw->boot)(str);
printf("boot failed, spinning\n");
while(1) /* forever */;
}