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:
parent
b58186265e
commit
7fe6c24aa5
7 changed files with 66 additions and 23 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue