forked from Bananymous/banan-os
Kernel: Add red colors to kernel panics
This commit is contained in:
parent
5f75479861
commit
9c72f7255a
|
@ -9,9 +9,9 @@ namespace Kernel
|
|||
__attribute__((__noreturn__))
|
||||
static void panic(const char* message, Args... args)
|
||||
{
|
||||
kprint("Kernel panic: ");
|
||||
kprint("\e[31mKernel panic: ");
|
||||
kprint(message, args...);
|
||||
kprint("\n");
|
||||
kprint("\e[m\n");
|
||||
asm volatile("cli; hlt");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue