Begin defining the process/thread api

This commit is contained in:
Drew Galbraith 2023-06-06 15:01:31 -07:00
parent e3661e7848
commit a092a57483
6 changed files with 31 additions and 18 deletions

View file

@ -1,7 +1,7 @@
#include "scheduler/process.h"
#include "debug/debug.h"
#include "include/cap_types.h"
#include "include/zcall.h"
#include "memory/paging_util.h"
#include "memory/physical_memory.h"
#include "scheduler/scheduler.h"
@ -27,7 +27,7 @@ void Process::CreateThread(uint64_t entry) {
Thread* thread = new Thread(*this, next_thread_id_++, entry);
threads_.PushBack(thread);
caps_.PushBack(new Capability(this, Capability::PROCESS, next_cap_id_++,
ZC_PROC_SPAWN_CHILD));
ZC_PROC_SPAWN_PROC));
gScheduler->Enqueue(thread);
}