Parameterize basic_memory_region to support extended memory flags

This commit is contained in:
3fault
2025-07-17 11:19:56 -04:00
parent 9f637105fb
commit f1d54f7417
4 changed files with 8 additions and 13 deletions

View File

@@ -2,14 +2,15 @@
#include "memory_permission.hpp"
#include <cstddef>
template<typename PermissionType = memory_permission>
struct basic_memory_region
{
uint64_t start{};
size_t length{}; // uint64_t?
memory_permission permissions{};
PermissionType permissions{};
};
struct memory_region : basic_memory_region
struct memory_region : basic_memory_region<>
{
bool committed{};
};