PMM: init (find biggest usable region)
This commit is contained in:
16
src/mem/paging/pmm.h
Normal file
16
src/mem/paging/pmm.h
Normal 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
|
||||
Reference in New Issue
Block a user