1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/arch/x86/panic.c
2017-11-08 08:56:12 +00:00

16 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.");
}