acadia/zion/memory/physical_memory.h
Drew Galbraith 0f0e39d1e9 Further parse AHCI information.
Send an IDENTIFY command to each drive and set up a hook to handle
interrupts.
2023-06-12 19:20:51 -07:00

19 lines
441 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();
uint64_t AllocateContinuous(uint64_t num_pages);
void FreePage(uint64_t page);
} // namespace phys_mem