aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include/mm/pmm.h
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-06-14 21:36:33 -0400
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-06-14 21:36:33 -0400
commit8322f42a0b23ed5bd9c40e64b204f0dad935ff63 (patch)
tree3a9ddf5e16e32239183e0c1067b4a8b452688c01 /kernel/include/mm/pmm.h
parent27a44e0d79d1c6e01cd832feb8ad958d5999b5e3 (diff)
Broken attempt at freelist pmm.
Diffstat (limited to 'kernel/include/mm/pmm.h')
-rw-r--r--kernel/include/mm/pmm.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/kernel/include/mm/pmm.h b/kernel/include/mm/pmm.h
index bfe21c5..c81438f 100644
--- a/kernel/include/mm/pmm.h
+++ b/kernel/include/mm/pmm.h
@@ -5,23 +5,12 @@
#include <stddef.h>
#include <limine.h>
-enum mm_type {
- MEM_USABLE,
- MEM_RESERVED
+struct pmm_list_node {
+ pmm_list_node* next;
};
-struct MMEntry {
- uint64_t base;
- uint64_t length;
- mm_type type;
-};
-
-struct PBitmap {
- uint64_t* addr;
- size_t size;
- MMEntry entry;
-};
-
-void pmm_init(limine_memmap_response* memmap, uint64_t hhdm_offset);
+void pmm_init(limine_memmap_response* memmap);
+void* palloc();
+void pfree(void* page);
#endif \ No newline at end of file