diff --git a/kernel/src/misc/stack.cpp b/kernel/src/misc/stack.cpp index 90b8e55f..781b9f29 100644 --- a/kernel/src/misc/stack.cpp +++ b/kernel/src/misc/stack.cpp @@ -1,9 +1,14 @@ #define MODULE "stack" -#include "panic/Panic.h" +#include "log/Log.h" +#include "misc/hang.h" +#include "render/TextRenderer.h" #include extern "C" void __stack_chk_fail() { - panic("Stack smashing detected"); + KernelLog::enable_log_backend(Backend::Console); + TextRenderer::reset(); + kerrorln("stack smashing detected"); + hang(); } \ No newline at end of file