Move PML4 initialization into the VirtualMemory class.

This commit is contained in:
Drew Galbraith 2023-05-30 21:39:19 -07:00
parent f22dd66c8d
commit 1db93e5b12
11 changed files with 39 additions and 25 deletions

View file

@ -2,5 +2,7 @@
#include <stdint.h>
#include "scheduler/process.h"
// Loads the elf program and returns its entry point.
uint64_t LoadElfProgram(uint64_t cr3, uint64_t base, uint64_t length);
uint64_t LoadElfProgram(Process& dest_proc, uint64_t base, uint64_t length);