improve panic with heap_stats

This commit is contained in:
Liam Kerr 2026-02-09 15:06:49 +00:00
parent 798aed2a39
commit db74bf9b06

View file

@ -2,6 +2,7 @@
#include <stdint.h>
#include <drivers/uart.h>
#include <syscon/syscon.h>
#include "memory.h"
void kpanic(const char *reason){
kputs("\n!!! PANIC !!!\n");
@ -50,5 +51,7 @@ void handle_trap() {
}
kprintf("Faulting Address (if applicable): 0x%p\n", mtval);
heap_stats();
poweroff();
}