diff options
Diffstat (limited to 'src/kernel/panic.c')
-rw-r--r-- | src/kernel/panic.c | 5 |
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; |