1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2025-02-24 15:55:41 -05:00
kernel/kernelmq/panic.c

17 lines
235 B
C
Raw Normal View History

2017-11-08 04:49:30 +00:00
#include "panic.h"
#include "logger.h"
2020-11-27 19:15:02 +05:00
#include <kernaux/arch/i386.h>
2017-11-08 04:49:30 +00:00
void panic(const char *const s)
{
logger_fail_from("panic", s);
2020-11-27 19:15:02 +05:00
kernaux_arch_i386_hang();
2017-11-08 04:49:30 +00:00
}
void halt()
{
panic("Kernel main function returned.");
}