[Kernel] More cleanup

This commit is contained in:
wheremyfoodat 2022-09-19 23:27:54 +03:00
parent ad07c70772
commit f100601caf
5 changed files with 32 additions and 31 deletions

View file

@ -26,8 +26,8 @@ Handle Kernel::makeProcess() {
const Handle resourceLimitHandle = makeObject(KernelObjectType::ResourceLimit);
// Allocate data
objects[processHandle].data = new ProcessData();
const auto processData = static_cast<ProcessData*>(objects[processHandle].data);
objects[processHandle].data = new Process();
const auto processData = objects[processHandle].getData<Process>();
// Link resource limit object with its parent process
objects[resourceLimitHandle].data = &processData->limits;