feat(arm64): higher-half kernel, early MMU in boot, and VMM

This commit is contained in:
karina
2026-04-26 21:47:41 +04:00
parent 3a55665bd7
commit b56b55e4b3
14 changed files with 485 additions and 55 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
#pragma once
#include <Types.h>
#include "../Common/bootinfo.h"
enum {
kVMPageSize = 4096,
@@ -12,12 +13,14 @@ typedef struct {
Size size;
} VMMemoryRegion;
typedef struct {
VMMemoryRegion totalRAM;
VMMemoryRegion reserved[kVMMaxReservedRegions];
UInt32 reservedCount;
VMMemoryRegion UART;
} VMBootMemoryMap;
void PMMInitialize(VMBootMemoryMap* bootMap);
void PMMInitialize(VMBootMemoryMap* bootMap, Bootinfo* info);
Pointer PMMAllocatePage();
void PMMFreePage(Address address);