Fix "shutdown -r" and "shutdown -h"

- "shutdown -r" will reset the system
- "shutdown -h" will power off the system
We don't drop into OFW as newer versions of solaris don't do this either
This commit is contained in:
Kip Macy 2006-11-26 22:31:23 +00:00
parent c724dffca0
commit 0c41445f77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164643
3 changed files with 2 additions and 6 deletions

View File

@ -717,7 +717,7 @@ cpu_shutdown(void *args)
#ifdef SMP
cpu_mp_shutdown();
#endif
OF_exit();
hv_mach_exit(0);
}
/* Get current clock frequency for the given cpu id. */

View File

@ -448,7 +448,6 @@ cpu_ipi_stop(struct trapframe *tf)
while ((started_cpus & PCPU_GET(cpumask)) == 0) {
if ((shutdown_cpus & PCPU_GET(cpumask)) != 0) {
atomic_clear_int(&shutdown_cpus, PCPU_GET(cpumask));
OF_exit();
}
}
atomic_clear_rel_int(&started_cpus, PCPU_GET(cpumask));

View File

@ -321,10 +321,7 @@ cpu_reset(void)
bspec[0] = '\0';
bspec[sizeof(bspec) - 1] = '\0';
}
#ifdef notyet
/* XXX SUN4V_FIXME */
openfirmware_exit(&args);
#endif
hv_mach_sir();
}
/*