summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/vm_machdep.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-12-28 23:56:50 +0000
committermarcel <marcel@FreeBSD.org>2006-12-28 23:56:50 +0000
commit22d869c2c12380352cabed2b26561893d1d22a55 (patch)
treee771740a9fe5f37b042a28c84d253eb58166224e /sys/powerpc/aim/vm_machdep.c
parent1828ce8b9a5c9e97161471fe47940bc809e3c3b7 (diff)
downloadFreeBSD-src-22d869c2c12380352cabed2b26561893d1d22a55.zip
FreeBSD-src-22d869c2c12380352cabed2b26561893d1d22a55.tar.gz
In cpu_reset(), call OF_reboot() instead of OF_exit(). The latter
doesn't do a reboot and has been observed to reset the NVRAM to its default values.
Diffstat (limited to 'sys/powerpc/aim/vm_machdep.c')
-rw-r--r--sys/powerpc/aim/vm_machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index 0f4ac46..eff8a34 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -89,6 +89,7 @@
#include <machine/frame.h>
#include <machine/md_var.h>
#include <machine/pcb.h>
+#include <machine/powerpc.h>
#include <dev/ofw/openfirm.h>
@@ -206,7 +207,7 @@ cpu_throw(struct thread *old, struct thread *new)
void
cpu_reset()
{
- OF_exit();
+ OF_reboot();
}
/*
OpenPOWER on IntegriCloud