Added new shutdown() function that at least does a sync() before rebooting

the system. Should shutdown all other things, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10045 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-19 20:18:27 +00:00
parent fc5fb64131
commit 5987043c75

View File

@ -162,6 +162,15 @@ _start(kernel_args *oldka, int cpu_num)
}
status_t
shutdown(bool reboot)
{
sync();
return arch_cpu_shutdown(reboot);
}
static int32
main2(void *unused)
{