diff --git a/Kernel/Source/KernelMain.c b/Kernel/Source/KernelMain.c index 07cb91c..3611ac3 100644 --- a/Kernel/Source/KernelMain.c +++ b/Kernel/Source/KernelMain.c @@ -1,8 +1,13 @@ #include "../Common/bootinfo.h" #include #include +#include void KernelMain(Bootinfo* bootinfo) { OSLog("Kernel started.\n"); + if (bootinfo->magic != BOOTINFO_MAGIC) { + OSPanic("Invalid bootinfo magic"); + } + DTBParse(bootinfo->dtb); } \ No newline at end of file