First steps: getting memory map from Limine request and looking at it

This commit is contained in:
2025-12-30 21:33:38 +01:00
parent cf4915d9f4
commit 8f5e2eae3e
10 changed files with 113 additions and 7 deletions

17
src/mem/paging/pmm.c Normal file
View File

@@ -0,0 +1,17 @@
// OMG here we are. I'm cooked.
/*
pmm - Physical Memory Manager
will manage 4kb pages physically
it will probably need to get some info from Limine,
to see which pages are used by kernel/bootloader/mmio/fb etc.
*/
#include "paging.h"
/*
First we'll have to discover the physical memory layout,
and for that we can use a Limine request.
*/
uint64_t pages_bitmap[];