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

17 lines
199 B
C
Raw Normal View History

2017-11-07 23:49:30 -05:00
#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.");
}