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.