Move process be to RefCounted

This commit is contained in:
Drew Galbraith 2023-06-06 19:12:46 -07:00
parent 2e1357255c
commit d358c1d672
6 changed files with 16 additions and 11 deletions

View file

@ -2,6 +2,7 @@
#include "boot/boot_info.h"
#include "debug/debug.h"
#include "lib/ref_ptr.h"
#include "loader/elf_loader.h"
#include "memory/paging_util.h"
#include "scheduler/process.h"
@ -49,7 +50,7 @@ void LoadInitProgram() {
const limine_file& init_prog = GetInitProgram("/sys/test");
const limine_file& prog2 = GetInitProgram("/sys/test2");
SharedPtr<Process> proc = MakeShared<Process>();
RefPtr<Process> proc = MakeRefCounted<Process>();
gProcMan->InsertProcess(proc);
uint64_t entry = LoadElfProgram(