feat: DTB now populates VMBootMemoryMap structure.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <Types.h>
|
||||
#include <VM/PMM.h>
|
||||
|
||||
typedef struct FDTHeader {
|
||||
UInt32 magic; // 0xd00dfeed
|
||||
@@ -32,4 +33,4 @@ enum {
|
||||
kFDTHeaderMagic = 0xd00dfeed,
|
||||
};
|
||||
|
||||
void DTBParse(Pointer dtb);
|
||||
void DTBParse(Pointer dtb, VMBootMemoryMap* bootMap);
|
||||
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
#include <Types.h>
|
||||
|
||||
void* memset(void* destination, int value, Size count);
|
||||
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include <Types.h>
|
||||
|
||||
enum {
|
||||
kVMPageSize = 4096,
|
||||
kVMBlocksPerByte = 8,
|
||||
kVMMaxReservedRegions = 128,
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
UInt64 base;
|
||||
Size size;
|
||||
} VMMemoryRegion;
|
||||
|
||||
typedef struct {
|
||||
VMMemoryRegion totalRAM;
|
||||
VMMemoryRegion reserved[kVMMaxReservedRegions];
|
||||
UInt32 reservedCount;
|
||||
} VMBootMemoryMap;
|
||||
Reference in New Issue
Block a user