aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include/mm/pmm.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/mm/pmm.h')
-rw-r--r--kernel/include/mm/pmm.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/kernel/include/mm/pmm.h b/kernel/include/mm/pmm.h
index c81438f..36c5f83 100644
--- a/kernel/include/mm/pmm.h
+++ b/kernel/include/mm/pmm.h
@@ -5,8 +5,17 @@
#include <stddef.h>
#include <limine.h>
-struct pmm_list_node {
- pmm_list_node* next;
+struct MemRegion {
+ uint64_t base;
+ uint64_t length;
+ uint64_t bitmap_pos; // where the region starts on the bitmap index
+};
+
+struct BitmapInfo {
+ uint64_t* address;
+ uint64_t ind_length;
+ int region_count;
+ MemRegion* regions[];
};
void pmm_init(limine_memmap_response* memmap);