mirror of
https://github.com/tailix/kernel.git
synced 2024-12-04 11:34:42 -05:00
16 lines
235 B
C
16 lines
235 B
C
#include "panic.h"
|
|
|
|
#include "logger.h"
|
|
|
|
#include <kernaux/arch/i386.h>
|
|
|
|
void panic(const char *const s)
|
|
{
|
|
logger_fail_from("panic", s);
|
|
kernaux_arch_i386_hang();
|
|
}
|
|
|
|
void halt()
|
|
{
|
|
panic("Kernel main function returned.");
|
|
}
|