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:
parent
fc5fb64131
commit
5987043c75
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user