Initial memory manager initialization code

This commit is contained in:
2024-04-07 10:26:12 +02:00
parent 42a1373612
commit 04e22c127e
10 changed files with 232 additions and 1 deletions

View File

@@ -14,9 +14,26 @@
/* Pages related definitions */
#define MM_PAGE_MASK 0xFFF
#define MM_PAGE_SHIFT 12
#define MM_PAGE_SHIFT 12L
#define MM_PAGE_SIZE 4096
#define MM_PTE_BASE 0xFFFFF68000000000UI64
#define MM_PDE_BASE 0xFFFFF6FB40000000UI64
#define MM_PPE_BASE 0xFFFFF6FB7DA00000UI64
#define MM_PXE_BASE 0xFFFFF6FB7DBED000UI64
#define MM_PTI_SHIFT 12
#define MM_PDI_SHIFT 21
#define MM_PPI_SHIFT 30
#define MM_PXI_SHIFT 39
#define MM_PTE_SHIFT 3
#define MM_PXE_PER_PAGE 512
/* Minimum number of physical pages needed by the system */
#define MM_MINIMUM_PHYSICAL_PAGES 2048
/* Page size enumeration list */
typedef enum _PAGE_SIZE
{

View File

@@ -17,6 +17,9 @@
#define MM_PAGE_SHIFT 12
#define MM_PAGE_SIZE 4096
/* Minimum number of physical pages needed by the system */
#define MM_MINIMUM_PHYSICAL_PAGES 1100
/* Page size enumeration list */
typedef enum _PAGE_SIZE
{