feat: add paging

This commit is contained in:
2026-10-06 16:24:44 +02:00
parent 86027f21db
commit aba27e44f9
12 changed files with 721 additions and 24 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef MMAP_HPP
#define MMAP_HPP
#include "types.hpp"
struct mmap {
static constexpr u64 MAX_ENTRY_COUNT = 170;
struct entry {
enum type_e {
INVALID = 0,
AVAILABLE = 1,
RESERVED = 2,
};
u64 base = 0;
u64 size = 0;
type_e type = AVAILABLE;
};
u64 entryCount = 0;
entry entries[MAX_ENTRY_COUNT];
};
static_assert(sizeof(mmap) <= 4096);
#endif // MMAP_HPP