exec: More logging

This commit is contained in:
apio 2022-10-15 17:47:57 +02:00
parent d30010d524
commit 1624f0360d

View File

@ -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.