From 41a15bd16806261d66d55bbb85034553cd58361e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 1 Sep 2022 23:46:19 +0200 Subject: kernel: add a debug print for the amount of used memory --- src/kernel/arch/amd64/interrupts/isr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/arch/amd64/interrupts/isr.c') 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 #include #include +#include #include #include #include @@ -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 { -- cgit v1.2.3