aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/aim/ofw_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/aim/ofw_machdep.c')
-rw-r--r--sys/powerpc/aim/ofw_machdep.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/sys/powerpc/aim/ofw_machdep.c b/sys/powerpc/aim/ofw_machdep.c
index 21b884778071..e0bf50575214 100644
--- a/sys/powerpc/aim/ofw_machdep.c
+++ b/sys/powerpc/aim/ofw_machdep.c
@@ -527,20 +527,21 @@ openfirmware(void *args)
}
void
-OF_halt()
-{
- int retval; /* dummy, this may not be needed */
-
- OF_interpret("shut-down", 1, &retval);
- for (;;); /* just in case */
-}
-
-void
OF_reboot()
{
- int retval; /* dummy, this may not be needed */
+ struct {
+ cell_t name;
+ cell_t nargs;
+ cell_t nreturns;
+ cell_t arg;
+ } args;
+
+ args.name = (cell_t)(uintptr_t)"interpret";
+ args.nargs = 1;
+ args.nreturns = 0;
+ args.arg = (cell_t)(uintptr_t)"reset-all";
+ openfirmware_core(&args); /* Don't do rendezvous! */
- OF_interpret("reset-all", 1, &retval);
for (;;); /* just in case */
}