From 5987043c7547904db7d3fa206408775e15e5dbf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 19 Nov 2004 20:18:27 +0000 Subject: [PATCH] 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 --- src/kernel/core/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/kernel/core/main.c b/src/kernel/core/main.c index 1a1060ec3b..04b7387682 100644 --- a/src/kernel/core/main.c +++ b/src/kernel/core/main.c @@ -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) {