Fix blocker counter
This commit is contained in:
parent
083a38ad82
commit
95327fc92d
1 changed files with 4 additions and 0 deletions
|
@ -446,6 +446,8 @@ malloc_in_range (struct grub_relocator *rel,
|
||||||
for (cur = extra_blocks; cur; cur = cur->next)
|
for (cur = extra_blocks; cur; cur = cur->next)
|
||||||
maxevents += 2;
|
maxevents += 2;
|
||||||
}
|
}
|
||||||
|
for (r = grub_mm_base; r; r = r->next)
|
||||||
|
maxevents += 2;
|
||||||
|
|
||||||
maxevents += grub_relocator_firmware_get_max_events ();
|
maxevents += grub_relocator_firmware_get_max_events ();
|
||||||
|
|
||||||
|
@ -791,6 +793,8 @@ malloc_in_range (struct grub_relocator *rel,
|
||||||
fend
|
fend
|
||||||
= ALIGN_UP (alloc_end,
|
= ALIGN_UP (alloc_end,
|
||||||
GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT);
|
GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT);
|
||||||
|
grub_dprintf ("relocator", "requesting %lx-%lx\n",
|
||||||
|
fstart, fend);
|
||||||
/* The failure here can be very expensive. */
|
/* The failure here can be very expensive. */
|
||||||
if (!grub_relocator_firmware_alloc_region (fstart,
|
if (!grub_relocator_firmware_alloc_region (fstart,
|
||||||
fend - fstart))
|
fend - fstart))
|
||||||
|
|
Loading…
Reference in a new issue