Properly map locale file

This commit is contained in:
momo5502
2024-09-12 09:50:13 +02:00
parent 08cc6932d8
commit 70400547ff
6 changed files with 176 additions and 16 deletions

View File

@@ -63,6 +63,17 @@ public:
region_info get_region_info(uint64_t address);
uint64_t allocate_memory(const size_t size, const memory_permission permissions, const bool reserve_only = false)
{
const auto allocation_base = this->find_free_allocation_base(size);
if (!allocate_memory(allocation_base, size, permissions, reserve_only))
{
return 0;
}
return allocation_base;
}
private:
using reserved_region_map = std::map<uint64_t, reserved_region>;
reserved_region_map reserved_regions_{};