First steps: getting memory map from Limine request and looking at it
This commit is contained in:
17
src/mem/paging/pmm.c
Normal file
17
src/mem/paging/pmm.c
Normal 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[];
|
||||
Reference in New Issue
Block a user