2023-05-18 01:18:51 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-06-06 20:18:53 -07:00
|
|
|
#include "object/process.h"
|
2023-05-30 21:39:19 -07:00
|
|
|
|
2023-05-18 01:18:51 -07:00
|
|
|
void InitializePml4(uint64_t pml4_physical_addr);
|
2023-05-18 09:46:41 -07:00
|
|
|
|
2023-06-06 21:44:10 -07:00
|
|
|
void MapPage(uint64_t cr3, uint64_t vaddr, uint64_t paddr);
|
|
|
|
|
2023-06-07 00:19:15 -07:00
|
|
|
uint64_t AllocatePageIfNecessary(uint64_t addr);
|
2023-05-18 09:46:41 -07:00
|
|
|
void EnsureResident(uint64_t addr, uint64_t size);
|