1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-27 11:24:34 -05:00
kernel/kernelmq/panic.c

16 lines
233 B
C

#include "panic.h"
#include "logger.h"
#include <kernaux/arch/x86.h>
void panic(const char *const s)
{
logger_fail_from("panic", s);
kernaux_arch_x86_hang();
}
void halt()
{
panic("Kernel main function returned.");
}