diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-06-28 19:18:15 -0400 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-06-28 19:18:15 -0400 |
| commit | 82bcab74e6e0c581dcf4ac4d7997aec5c5e14aae (patch) | |
| tree | 36312608202be75c77dafad2e88324f8241f267c /kernel/include/mm/pmm.h | |
| parent | cda5a0192f1435cd875fbfc783ddaf538f1c0e5e (diff) | |
Finished pmm (bitmap)
Diffstat (limited to 'kernel/include/mm/pmm.h')
| -rw-r--r-- | kernel/include/mm/pmm.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/kernel/include/mm/pmm.h b/kernel/include/mm/pmm.h index 36c5f83..772bc44 100644 --- a/kernel/include/mm/pmm.h +++ b/kernel/include/mm/pmm.h @@ -5,21 +5,15 @@ #include <stddef.h> #include <limine.h> -struct MemRegion { - uint64_t base; +struct Bitmap { + Bitmap* next; uint64_t length; - uint64_t bitmap_pos; // where the region starts on the bitmap index -}; - -struct BitmapInfo { + uint64_t limit; uint64_t* address; - uint64_t ind_length; - int region_count; - MemRegion* regions[]; }; void pmm_init(limine_memmap_response* memmap); -void* palloc(); -void pfree(void* page); +uint64_t palloc(); +void pfree(uint64_t page); #endif
\ No newline at end of file |
