improve panic with heap_stats
This commit is contained in:
parent
798aed2a39
commit
db74bf9b06
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue