From 1f71b9576db536af84155363e14fc49e92de2eef Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Sun, 29 Aug 2021 02:52:48 -0500 Subject: backup 8.29.21 --- src/kernel/panic.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/kernel/panic.c') diff --git a/src/kernel/panic.c b/src/kernel/panic.c index 82a761f..d17c185 100644 --- a/src/kernel/panic.c +++ b/src/kernel/panic.c @@ -1,12 +1,15 @@ #include #include #include -#include -#include +#include +#include #include +#include + +static uint8_t panic_lock = 0; void panic(int reason, void *eframe_p, struct registers *regs) { // will fill with debugging info latter - + lock(&panic_lock); #ifdef EASTEREGG_BLOATWARE printf("\nKernel PANIC!!!!!!!\n"); @@ -49,6 +52,9 @@ void panic(int reason, void *eframe_p, struct registers *regs) { // will fill wi break; case KERNEL_PANIC_HPET_REQUIRED: printf("\nHPET is required. \nIf you get this error, let know;\nif enough people share this issue, I'll impliment PIT usage.\n"); + case KERNEL_PANIC_SMP_FAILED: + printf("\nNot all cores booted successfully (see text before panic).\n"); + break; default: printf("\nUnknown panic code %i\n.", reason); break; -- cgit v1.2.3