static size_t fill_module_info_from_multiboot(caddr_t addr) { ... unsigned int i = 0; ... while(i < multiboot_mods.count) { struct multiboot_module *mbmod = (struct multiboot_module *)((caddr_t)(multiboot_mods.address + i) + KERNBASE); ... i++; } ...