* grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
of GRUB_IEEE1275_FLAG_FORCE_CLAIM. * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
This commit is contained in:
parent
f32555dd93
commit
90ec4b7f6c
5 changed files with 34 additions and 4 deletions
|
@ -38,7 +38,7 @@ grub_relocator_firmware_get_max_events (void)
|
|||
{
|
||||
int counter = 0;
|
||||
|
||||
if (grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_CANNOT_INTERPRET))
|
||||
if (grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_FORCE_CLAIM))
|
||||
return 0;
|
||||
grub_machine_mmap_iterate (count, &counter);
|
||||
return 2 * counter;
|
||||
|
@ -92,7 +92,7 @@ grub_relocator_firmware_fill_events (struct grub_relocator_mmap_event *events)
|
|||
.counter = 0
|
||||
};
|
||||
|
||||
if (grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_CANNOT_INTERPRET))
|
||||
if (grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_FORCE_CLAIM))
|
||||
return 0;
|
||||
grub_machine_mmap_iterate (grub_relocator_firmware_fill_events_iter, &ctx);
|
||||
return ctx.counter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue