5 #include "sys/grub_modules.h"
8 #include "lib/string.h"
9 #include "drv/disk/initrd.h"
11 size_t grub_last_module_end = 0;
17 grub_last_module_end = mod->mod_end;
22 qemu_log(
"Initializing kernel modules...");
24 if(hdr->mods_count == 0) {
25 qemu_err(
"No modules were connected!");
29 qemu_log(
"Found %d modules", hdr->mods_count);
33 for (
size_t i = 0; i < hdr->mods_count; i++) {
36 size_t mod_size = mod->mod_end - mod->mod_start;
38 qemu_log(
"[kModules] Found module #%d. (Start: %x | End: %x | Size: %d); CMD: %s (at %x)",
47 if (
strcmp((
const char *) mod->cmdline,
"initrd_tarfs") == 0) {
48 initrd_tarfs(mod->mod_start, mod->mod_end);
int strcmp(const char *s1, const char *s2)
Сравнение строк