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:
parent
508e39ee41
commit
5618afbf59
3 changed files with 8 additions and 0 deletions
|
@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue