diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-06-15 01:36:51 -0400 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-06-15 01:36:51 -0400 |
| commit | cda5a0192f1435cd875fbfc783ddaf538f1c0e5e (patch) | |
| tree | 4e6351a99224fa478cdf2e21752180979082ddff /kernel/include/mm | |
| parent | 8322f42a0b23ed5bd9c40e64b204f0dad935ff63 (diff) | |
Unfinished bitmap attempt. Likely will not use.
Diffstat (limited to 'kernel/include/mm')
| -rw-r--r-- | kernel/include/mm/pmm.h | 13 |
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); |
