mirror of
https://github.com/tailix/kernel.git
synced 2024-12-11 11:35:39 -05:00
17 lines
199 B
C
17 lines
199 B
C
|
#include "panic.h"
|
||
|
|
||
|
#include "logger.h"
|
||
|
|
||
|
void hang();
|
||
|
|
||
|
void panic(const char *const s)
|
||
|
{
|
||
|
logger_fail_from("panic", s);
|
||
|
hang();
|
||
|
}
|
||
|
|
||
|
void halt()
|
||
|
{
|
||
|
panic("Kernel main function returned.");
|
||
|
}
|