From ffd539362046a9ba5922cf234be872fd7278212a Mon Sep 17 00:00:00 2001 From: Pawel Dziepak Date: Tue, 1 Oct 2013 19:31:48 +0200 Subject: [PATCH] kernel/util: Make exit() available in bootloader as well --- src/system/kernel/util/kernel_cpp.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/system/kernel/util/kernel_cpp.cpp b/src/system/kernel/util/kernel_cpp.cpp index ca5e44e7e9..ad2b50b49c 100644 --- a/src/system/kernel/util/kernel_cpp.cpp +++ b/src/system/kernel/util/kernel_cpp.cpp @@ -252,14 +252,6 @@ abort() } -extern "C" -void -exit(int status) -{ - panic("exit() called with status code = %d!", status); -} - - extern "C" void debugger(const char *message) @@ -268,3 +260,12 @@ debugger(const char *message) } #endif // _#if KERNEL_MODE + + +extern "C" +void +exit(int status) +{ + panic("exit() called with status code = %d!", status); +} +