Fix FTBFS on mips and ppc

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-03 20:53:54 +01:00
parent 1e95b56e59
commit 123f9c50eb
5 changed files with 10 additions and 3 deletions

View File

@ -124,7 +124,7 @@ grub_relocator32_boot (struct grub_relocator *rel,
(0xffffffff - stateset_size)
+ 1, stateset_size,
sizeof (grub_uint32_t),
GRUB_RELOCATOR_PREFERENCE_NONE);
GRUB_RELOCATOR_PREFERENCE_NONE, 0);
if (err)
return err;

View File

@ -119,7 +119,7 @@ grub_relocator32_boot (struct grub_relocator *rel,
(0xffffffff - stateset_size)
+ 1, stateset_size,
sizeof (grub_uint32_t),
GRUB_RELOCATOR_PREFERENCE_NONE);
GRUB_RELOCATOR_PREFERENCE_NONE, 0);
if (err)
return err;

View File

@ -1409,6 +1409,9 @@ grub_relocator_alloc_chunk_align (struct grub_relocator *rel,
#ifdef GRUB_MACHINE_EFI
grub_efi_mmap_iterate (hook, avoid_efi_boot_services);
#elif defined (__powerpc__)
(void) avoid_efi_boot_services;
grub_machine_mmap_iterate (hook);
#else
(void) avoid_efi_boot_services;
grub_mmap_iterate (hook);

View File

@ -479,7 +479,7 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
+ linux_size + 0x10000,
(0x10000000 - size),
size, 0x10000,
GRUB_RELOCATOR_PREFERENCE_NONE);
GRUB_RELOCATOR_PREFERENCE_NONE, 0);
if (err)
goto fail;

View File

@ -134,7 +134,11 @@ grub_multiboot_boot (void)
return err;
#endif
#if defined (__i386__) || defined (__x86_64__)
grub_relocator32_boot (grub_multiboot_relocator, state, 0);
#else
grub_relocator32_boot (grub_multiboot_relocator, state);
#endif
/* Not reached. */
return GRUB_ERR_NONE;