summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/machdep.c
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2003-12-09 14:45:39 +0000
committergallatin <gallatin@FreeBSD.org>2003-12-09 14:45:39 +0000
commitf7822af26903862bdd06c1515749a157115510b7 (patch)
treebdcd80b24c21cc78cfd767d6586c25076ed51ca5 /sys/powerpc/aim/machdep.c
parentd10b5c1ba50e744c47dd549f21fbfa5fde2e1d4d (diff)
downloadFreeBSD-src-f7822af26903862bdd06c1515749a157115510b7.zip
FreeBSD-src-f7822af26903862bdd06c1515749a157115510b7.tar.gz
Use the "shut-down" and "reset-all" Forth procedures to halt and
reboot, as calling OF_exit() just hangs a mac. FreeBSD on my G4 800Mhz mac behaves identically to OSX for halt and reboot now. Reviewed by: grehan (who also supplied the concept and sample code)
Diffstat (limited to 'sys/powerpc/aim/machdep.c')
-rw-r--r--sys/powerpc/aim/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index 5dbb5ee..e009b18 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -162,8 +162,9 @@ static void
powerpc_ofw_shutdown(void *junk, int howto)
{
if (howto & RB_HALT) {
- OF_exit();
+ OF_halt();
}
+ OF_reboot();
}
static void
OpenPOWER on IntegriCloud