Files
MontaukOS/kernel/src/Memory/Memmap.hpp
T

17 lines
409 B
C++

#pragma once
#include <Boot/BootInfo.hpp>
#include <cstddef>
#include <cstdint>
namespace Memory {
// Shared
struct LargestSection {
uint64_t address;
size_t size;
};
// Scan the boot contract's physical memory map for the largest single
// run of usable RAM (the page-frame allocator is seeded from it).
LargestSection Scan(const montauk::boot::MemoryMap& mmap);
};