21 lines
479 B
C
21 lines
479 B
C
|
|
#include <stdint.h>
|
|
#include "multiboot.h"
|
|
|
|
void load_kernel_module(const multiboot_module_t* module)
|
|
{
|
|
|
|
}
|
|
|
|
void loader_main(const multiboot_info_t* multibootInfo)
|
|
{
|
|
if (multibootInfo->flags & MULTIBOOT_INFO_MODS)
|
|
{
|
|
const multiboot_module_t* modules = (multiboot_module_t*) multibootInfo->mods_addr;
|
|
for (uint32_t modIdx = 0; modIdx < multibootInfo->mods_count; ++modIdx)
|
|
{
|
|
load_kernel_module(&modules[modIdx]);
|
|
}
|
|
}
|
|
}
|