Definitively remove allocation from region start if no free header is present at the begining (at most 15 bytes loss)

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-04-03 19:41:36 +02:00
parent f0847685dd
commit 1c7a1bab8c

View file

@ -359,17 +359,6 @@ malloc_in_range (struct grub_relocator *rel,
p = pa->next;
}
while (pa != r->first);
/* FIXME */
if (0)//if (!pre_added)
{
events[N].type = REG_BEG_START;
events[N].pos = (grub_addr_t) r - r->pre_size;
events[N].reg = r;
N++;
events[N].type = REG_BEG_END;
events[N].pos = (grub_addr_t) r;
N++;
}
}
#if GRUB_RELOCATOR_HAVE_FIRMWARE_REQUESTS