* grub-core/mmap/i386/pc/mmap.c (malloc_hook):

Allocate in multiples of 16 to avoid adding a few bytes free region the
	windows bugs upon.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-06-03 18:00:37 +02:00
parent 15a940bbd8
commit efbeefe90f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/mmap/i386/pc/mmap.c (malloc_hook):
Allocate in multiples of 16 to avoid adding a few bytes free region the
windows bugs upon.
2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/i386/pc/drivemap.c (install_int13_handler):

View File

@ -171,7 +171,7 @@ malloc_hook (void)
reentry = 1;
hooktarget
= grub_mmap_malign_and_register (16, hooksize, &mmapregion,
= grub_mmap_malign_and_register (16, ALIGN_UP (hooksize, 16), &mmapregion,
GRUB_MEMORY_RESERVED,
GRUB_MMAP_MALLOC_LOW);
reentry = 0;