summaryrefslogtreecommitdiff
path: root/src/kernel/arch
diff options
context:
space:
mode:
authordzwdz2022-09-01 23:46:19 +0200
committerdzwdz2022-09-01 23:46:19 +0200
commit41a15bd16806261d66d55bbb85034553cd58361e (patch)
tree890e58036c79b7574f005923c779d3d2a8c692a1 /src/kernel/arch
parent7cccc1fb9951f91d91fe72114b39585e5b428384 (diff)
kernel: add a debug print for the amount of used memory
Diffstat (limited to 'src/kernel/arch')
-rw-r--r--src/kernel/arch/amd64/interrupts/isr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/interrupts/isr.c b/src/kernel/arch/amd64/interrupts/isr.c
index 17dce6e..519d783 100644
--- a/src/kernel/arch/amd64/interrupts/isr.c
+++ b/src/kernel/arch/amd64/interrupts/isr.c
@@ -6,6 +6,7 @@
#include <kernel/arch/amd64/port_io.h>
#include <kernel/arch/amd64/time.h>
#include <kernel/arch/generic.h>
+#include <kernel/mem/alloc.h>
#include <kernel/panic.h>
#include <kernel/proc.h>
#include <stdbool.h>
@@ -53,6 +54,7 @@ void isr_stage3(int interrupt, uint64_t *stackframe) {
default:
if ((stackframe[1] & 0x3) == 0) {
+ mem_debugprint();
log_interrupt(interrupt, stackframe);
cpu_halt();
} else {