mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
15 lines
262 B
C
15 lines
262 B
C
#include "panic.h"
|
|
|
|
#include <kernaux/arch/i386.h>
|
|
#include <kernaux/console.h>
|
|
|
|
void panic(const char *const s)
|
|
{
|
|
kernaux_console_printf("[FAIL] panic: %s\n", s);
|
|
kernaux_arch_i386_hang();
|
|
}
|
|
|
|
void halt()
|
|
{
|
|
panic("Kernel main function returned.");
|
|
}
|