Skip to content

Commit

Permalink
kernel/util: Make exit() available in bootloader as well
Browse files Browse the repository at this point in the history
  • Loading branch information
pdziepak committed Oct 1, 2013
1 parent 94bf728 commit ffd5393
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/system/kernel/util/kernel_cpp.cpp
Expand Up @@ -254,17 +254,18 @@ abort()

extern "C"
void
exit(int status)
debugger(const char *message)
{
panic("exit() called with status code = %d!", status);
kernel_debugger(message);
}

#endif // _#if KERNEL_MODE


extern "C"
void
debugger(const char *message)
exit(int status)
{
kernel_debugger(message);
panic("exit() called with status code = %d!", status);
}

#endif // _#if KERNEL_MODE

0 comments on commit ffd5393

Please sign in to comment.