feat: DTB now populates VMBootMemoryMap structure.

This commit is contained in:
karina
2026-04-26 13:32:44 +04:00
parent a05b51fca3
commit 785a61b451
8 changed files with 109 additions and 14 deletions
+6 -2
View File
@@ -1,4 +1,5 @@
#include "../Common/bootinfo.h"
#include <VM/PMM.h>
#include <Arch/DTB.h>
#include <OS/Log.h>
#include <OS/Panic.h>
@@ -8,6 +9,9 @@ void KernelMain(Bootinfo* bootinfo) {
if (bootinfo->magic != BOOTINFO_MAGIC) {
OSPanic("Invalid bootinfo magic");
}
DTBParse(bootinfo->dtb);
VMBootMemoryMap bootMap = {0};
bootMap.reservedCount = 0;
DTBParse(bootinfo->dtb, &bootMap);
OSLog("Meow...\n");
}