summaryrefslogtreecommitdiff
path: root/src/kernel/panic.c
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcspace.com>2021-09-24 14:20:20 -0500
committerBrett Weiland <brett_weiland@bpcspace.com>2021-09-24 14:20:20 -0500
commitb62706c9f2ceed65394457ae9b131996a2b29463 (patch)
treee00d7d68f4dcaac07ae8931e0a7871ef34d270d6 /src/kernel/panic.c
parentcf7cd8be60c254b44b444c97dcb238d7cf3afd4c (diff)
palloc/pfree found smp safe
Diffstat (limited to 'src/kernel/panic.c')
-rw-r--r--src/kernel/panic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/panic.c b/src/kernel/panic.c
index 06b37da..17a563d 100644
--- a/src/kernel/panic.c
+++ b/src/kernel/panic.c
@@ -6,7 +6,7 @@
#include <isv.h>
#include <smp.h>
-static uint8_t panic_lock = 0;
+static uint16_t panic_lock = 0;
void panic(int reason, void *eframe_p, struct registers *regs) { // will fill with debugging info latter
lock(&panic_lock);
@@ -56,6 +56,9 @@ void panic(int reason, void *eframe_p, struct registers *regs) { // will fill wi
case KERNEL_PANIC_SMP_FAILED:
printf("\nNot all cores booted successfully (see text before panic).\n");
break;
+ case KERNEL_PANIC_PALLOC_TOO_LARGE:
+ printf("\npalloc was called with a size greater then supported.\n");
+ break;
default:
printf("\nUnknown panic code %i\n.", reason);
break;