1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/kernelmq/panic.c

16 lines
262 B
C
Raw Normal View History

2017-11-07 23:49:30 -05:00
#include "panic.h"
#include <kernaux/arch/i386.h>
2020-12-05 22:04:34 -05:00
#include <kernaux/console.h>
2017-11-07 23:49:30 -05:00
void panic(const char *const s)
{
2020-12-05 22:04:34 -05:00
kernaux_console_printf("[FAIL] panic: %s\n", s);
kernaux_arch_i386_hang();
2017-11-07 23:49:30 -05:00
}
void halt()
{
panic("Kernel main function returned.");
}