aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2025-01-21 02:35:07 -0500
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2025-01-21 02:35:07 -0500
commit0cfee3a1a16d3b04829a646b94e45685ee878876 (patch)
tree1c7317dd709b6916df195b218e13d6a72592de31 /kernel/include
parent43d92e30ad3743b8d0ce6593c17892fe1a78a1e8 (diff)
changed pmm to be a freelist allocator instead of bitmap
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/mm/pmm.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/kernel/include/mm/pmm.h b/kernel/include/mm/pmm.h
index 772bc44..a2af030 100644
--- a/kernel/include/mm/pmm.h
+++ b/kernel/include/mm/pmm.h
@@ -5,15 +5,8 @@
#include <stddef.h>
#include <limine.h>
-struct Bitmap {
- Bitmap* next;
- uint64_t length;
- uint64_t limit;
- uint64_t* address;
-};
-
void pmm_init(limine_memmap_response* memmap);
-uint64_t palloc();
-void pfree(uint64_t page);
+uint64_t page_alloc();
+void page_free(uint64_t page);
#endif \ No newline at end of file