diff --git a/src/Kernel.hh b/src/Kernel.hh index 9afed1e..f6ec3ef 100644 --- a/src/Kernel.hh +++ b/src/Kernel.hh @@ -25,6 +25,8 @@ struct StartupInformation u32 kernelStart; /** Ending address (the first address *after* the last) of the kernel. */ u32 kernelEnd; + /** Multiboot's magic value. This should be verified. */ + u32 multibootMagic; /** Pointer to the multiboot information struct. */ multiboot::Information* multibootInformation; }; diff --git a/src/Main.cc b/src/Main.cc index 30dd740..dd6339d 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -38,6 +38,7 @@ kmain(multiboot::Information *information, kernel::StartupInformation startupInformation; startupInformation.kernelStart = u32(&kernelStart); startupInformation.kernelEnd = u32(&kernelEnd); + startupInformation.multibootMagic = magic; startupInformation.multibootInformation = information; kernel.initialize(startupInformation);