mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
Fix FTBFS on mips and ppc
This commit is contained in:
1 parent
1e95b56e59
commit
123f9c50eb
5 files changed
+10
-3
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user