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 <stdint.h>
|
||||||
#include <drivers/uart.h>
|
#include <drivers/uart.h>
|
||||||
#include <syscon/syscon.h>
|
#include <syscon/syscon.h>
|
||||||
|
#include "memory.h"
|
||||||
|
|
||||||
void kpanic(const char *reason){
|
void kpanic(const char *reason){
|
||||||
kputs("\n!!! PANIC !!!\n");
|
kputs("\n!!! PANIC !!!\n");
|
||||||
|
|
@ -50,5 +51,7 @@ void handle_trap() {
|
||||||
}
|
}
|
||||||
kprintf("Faulting Address (if applicable): 0x%p\n", mtval);
|
kprintf("Faulting Address (if applicable): 0x%p\n", mtval);
|
||||||
|
|
||||||
|
heap_stats();
|
||||||
|
|
||||||
poweroff();
|
poweroff();
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue