2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>

From Hitoshi Ozeki:
    * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
    when merging two regions.
This commit is contained in:
okuji 2007-09-03 20:33:20 +00:00
parent 508e39ee41
commit 5618afbf59
3 changed files with 8 additions and 0 deletions

View file

@ -120,6 +120,7 @@ compact_mem_regions (void)
grub_memmove (mem_regions + j, mem_regions + j + 1,
(num_regions - j - 1) * sizeof (struct mem_region));
i--;
num_regions--;
}
}