From 0e225778d50865f2424dfb57d107630794721bcf Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 22 Apr 2022 15:24:22 +0200 Subject: kernel: recursive process_free --- src/kernel/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kernel/main.c') diff --git a/src/kernel/main.c b/src/kernel/main.c index a0fdd07..14514cb 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -27,6 +27,11 @@ void shutdown(void) { for (size_t i = 0; i < sizeof(states) / sizeof(*states); i++) kprintf("state 0x%x: 0x%x\n", i, states[i]); + mem_debugprint(); + + // TODO generalize to process_cleanup + process_free(process_first); + mem_debugprint(); cpu_shutdown(); } -- cgit v1.2.3