Scheduler: free a task's ELF image.
Now that we have support for larger pages, this works!!
This commit is contained in:
parent
eaea4603c6
commit
0ee9bd7290
@ -162,6 +162,7 @@ void Scheduler::reap_task(Task* task)
|
|||||||
{
|
{
|
||||||
ELFSection& section = exiting_task->image->sections[i];
|
ELFSection& section = exiting_task->image->sections[i];
|
||||||
kdbgln("Task was using region %lx, which used %ld pages", section.base, section.pages);
|
kdbgln("Task was using region %lx, which used %ld pages", section.base, section.pages);
|
||||||
|
MemoryManager::release_pages((void*)section.base, section.pages);
|
||||||
}
|
}
|
||||||
kfree(exiting_task->image);
|
kfree(exiting_task->image);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user