feat(arm64): higher-half kernel, early MMU in boot, and VMM
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user