aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include/mm/pmm.h
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-06-15 01:36:51 -0400
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-06-15 01:36:51 -0400
commitcda5a0192f1435cd875fbfc783ddaf538f1c0e5e (patch)
tree4e6351a99224fa478cdf2e21752180979082ddff /kernel/include/mm/pmm.h
parent8322f42a0b23ed5bd9c40e64b204f0dad935ff63 (diff)
Unfinished bitmap attempt. Likely will not use.
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);