Add a ProcessManager class to store Process objects.

Trying out a new method for exposing global objects directly via a
variable.
This commit is contained in:
Drew Galbraith 2023-05-29 23:35:44 -07:00
parent b58186265e
commit 7fe6c24aa5
7 changed files with 66 additions and 23 deletions

View file

@ -8,6 +8,7 @@
#include "memory/kernel_heap.h"
#include "memory/paging_util.h"
#include "memory/physical_memory.h"
#include "scheduler/process_manager.h"
#include "scheduler/scheduler.h"
#include "syscall/syscall.h"
@ -28,6 +29,7 @@ extern "C" void zion() {
InitSyscall();
dbgln("[boot] Init scheduler.");
ProcessManager::Init();
// Schedule every 50ms.
SetFrequency(/* hertz= */ 20);
sched::InitScheduler();