acadia/zion/memory/physical_memory.h
Drew Galbraith 2d719d0443 Add a bootstrap physical memory manager.
This will allow the real physical memory manager to use allocations.
2023-05-18 11:00:05 -07:00

18 lines
392 B
C++

#pragma once
#include <stdint.h>
namespace phys_mem {
// Called before creating a kernel heap object
// that allows dynamic allocation. The real
// PhysicalMemoryManager requires some allocations
// to initialize so we need this first.
void InitBootstrapPageAllocation();
void InitPhysicalMemoryManager();
uint64_t AllocatePage();
void FreePage(uint64_t page);
} // namespace phys_mem