* 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> 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/i386/pc/drivemap.c (install_int13_handler): * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):

View file

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