kernel/util: Make exit() available in kernel mode
Since we are using libraries originally intendent for user mode in kernel mode providing them with some userland functions is inevitable. This particular patch is to make zlib happy and able to call exit() when its debug assertions fails.
This commit is contained in:
parent
d06885888d
commit
7aecb0b276
@ -251,6 +251,15 @@ abort()
|
||||
panic("abort() called!");
|
||||
}
|
||||
|
||||
|
||||
extern "C"
|
||||
void
|
||||
exit(int status)
|
||||
{
|
||||
panic("exit() called with status code = %d!", status);
|
||||
}
|
||||
|
||||
|
||||
extern "C"
|
||||
void
|
||||
debugger(const char *message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user