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

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

@@ -0,0 +1,16 @@
#ifndef PAGING_PMM_H
#define PAGING_PMM_H
/*
We are going to use a bitmap, consisting of an array of uint64_t
to represent pages for the PMM (physical memory manager).
Bit set (1) = page used
Bit clear (0) = page free
*/
#define PAGE_SIZE 4096
#define BITS_PER_ROW 64
#endif