shutdown() is the main kernel shutdown function that also syncs disks, etc.

It cannot be called with interrupts off, and is likely to fail in the debugger;
arch_cpu_shutdown() reboots the machine directly which is what we want here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12225 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-04-04 13:38:31 +00:00
parent 6e061f37b4
commit 0c2ca2f1bf
+1 -1
View File
@@ -313,7 +313,7 @@ dbg_puts(const char *s)
static int
cmd_reboot(int argc, char **argv)
{
shutdown(true);
arch_cpu_shutdown(true);
return 0;
// I'll be really suprised if this line ever runs! ;-)
}