From 1624f0360dd6f3f9522ed46381ba77929d7d3341 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 15 Oct 2022 17:47:57 +0200 Subject: [PATCH] exec: More logging --- kernel/src/sys/exec.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/src/sys/exec.cpp b/kernel/src/sys/exec.cpp index 1f3f3c0e..9e5df9f7 100644 --- a/kernel/src/sys/exec.cpp +++ b/kernel/src/sys/exec.cpp @@ -75,8 +75,12 @@ void sys_exec(Context* context, const char* pathname) if (task->address_space.is_cloned()) { + kdbgln("Detaching cloned address space, %p, %s", (void*)task->address_space.get_pml4(), + task->address_space.is_cloned() ? "is cloned" : "is not cloned"); task->address_space.detach(); VMM::switch_to_user_address_space(task->address_space); + kdbgln("Detached cloned address space, %p, %s", (void*)task->address_space.get_pml4(), + task->address_space.is_cloned() ? "is cloned" : "is not cloned"); } // At this point, pretty much nothing can fail.