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

@ -4,7 +4,7 @@
#include "debug/debug.h"
#include "loader/elf_loader.h"
#include "scheduler/process.h"
#include "scheduler/scheduler.h"
#include "scheduler/process_manager.h"
namespace {
@ -25,6 +25,6 @@ const limine_file& GetInitProgram() {
void LoadInitProgram() {
const limine_file& init_prog = GetInitProgram();
sched::InsertProcess(
gProcMan->InsertProcess(
new Process(reinterpret_cast<uint64_t>(init_prog.address)));
}