From cda5a0192f1435cd875fbfc783ddaf538f1c0e5e Mon Sep 17 00:00:00 2001 From: EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> Date: Sat, 15 Jun 2024 01:36:51 -0400 Subject: Unfinished bitmap attempt. Likely will not use. --- kernel/include/mm/pmm.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'kernel/include/mm/pmm.h') 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 #include -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); -- cgit v1.2.3-70-g09d2