PMM: init (find biggest usable region)

This commit is contained in:
2025-12-31 12:02:41 +01:00
parent 8f5e2eae3e
commit 05a862e97a
7 changed files with 99 additions and 5 deletions

16
src/mem/paging/pmm.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef PAGING_PMM_H
#define PAGING_PMM_H
#include <limine.h>
void pmm_init(struct limine_memmap_response* memmap, struct limine_hhdm_response* hhdm);
// Might be upgraded to a freelist later.
// For now, we can take the biggest usable region and we will be fine.
struct usable_memory
{
uint64_t base; // physical
uint64_t length;
};
#endif