feat: DTB now populates VMBootMemoryMap structure.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user