Make a KernelObject base class for all Capabilities.
This commit is contained in:
parent
d358c1d672
commit
4e278a4664
9 changed files with 50 additions and 21 deletions
|
|
@ -71,7 +71,7 @@ uint64_t ProcessSpawnElf(ZProcessSpawnElfReq* req) {
|
|||
return ZE_DENIED;
|
||||
}
|
||||
dbgln("Proc spawn: %u:%u", req->elf_base, req->elf_size);
|
||||
RefPtr<Process> proc = MakeRefCounted<Process>();
|
||||
RefPtr<Process> proc = Process::Create();
|
||||
gProcMan->InsertProcess(proc);
|
||||
uint64_t entry = LoadElfProgram(*proc, req->elf_base, req->elf_size);
|
||||
proc->CreateThread()->Start(entry, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue