[zion] Add utility to zero out a page when allocating one.

This commit is contained in:
Drew Galbraith 2023-06-19 23:44:33 -07:00
parent 0b9e0adfbb
commit 164309eada
3 changed files with 25 additions and 19 deletions

View file

@ -10,9 +10,12 @@ namespace phys_mem {
// to initialize so we need this first.
void InitBootstrapPageAllocation();
// Initializes the main physical memory manager.
void InitPhysicalMemoryManager();
uint64_t AllocatePage();
uint64_t AllocateAndZeroPage();
uint64_t AllocateContinuous(uint64_t num_pages);
void FreePage(uint64_t page);