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

17 lines
233 B
C
Raw Normal View History

2017-11-07 23:49:30 -05:00
#include "panic.h"
#include "logger.h"
2020-11-30 06:31:20 -05:00
#include <kernaux/arch/x86.h>
2017-11-07 23:49:30 -05:00
void panic(const char *const s)
{
logger_fail_from("panic", s);
2020-11-30 06:31:20 -05:00
kernaux_arch_x86_hang();
2017-11-07 23:49:30 -05:00
}
void halt()
{
panic("Kernel main function returned.");
}