Fix emu compilation error on arm.

This commit is contained in:
Vladimir Serbinenko 2016-02-12 09:10:08 +01:00
parent df4df4d887
commit 281baeecd3

View file

@ -201,7 +201,7 @@ main (int argc, char *argv[])
volatile int hold = 0; volatile int hold = 0;
size_t total_module_size = sizeof (struct grub_module_info), memdisk_size = 0; size_t total_module_size = sizeof (struct grub_module_info), memdisk_size = 0;
struct grub_module_info *modinfo; struct grub_module_info *modinfo;
char *mods; void *mods;
grub_util_host_init (&argc, &argv); grub_util_host_init (&argc, &argv);
@ -232,10 +232,10 @@ main (int argc, char *argv[])
struct grub_module_header *header = (struct grub_module_header *) mods; struct grub_module_header *header = (struct grub_module_header *) mods;
header->type = OBJ_TYPE_MEMDISK; header->type = OBJ_TYPE_MEMDISK;
header->size = memdisk_size + sizeof (*header); header->size = memdisk_size + sizeof (*header);
mods += sizeof (*header); mods = header + 1;
grub_util_load_image (arguments.mem_disk, mods); grub_util_load_image (arguments.mem_disk, mods);
mods += memdisk_size; mods = (char *) mods + memdisk_size;
} }
grub_modbase = (grub_addr_t) modinfo; grub_modbase = (grub_addr_t) modinfo;