]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 3 Jun 2012 15:47:20 +0000 (17:47 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 3 Jun 2012 15:47:20 +0000 (17:47 +0200)
Allocate in multiples of 16 to avoid adding a few bytes free region the
windows bugs upon.
* grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.

ChangeLog
grub-core/commands/i386/pc/drivemap.c

index 00f062165072ea781f29c1485567c9185545167c..ce0ae4c713bce9356bf89ff64c56ca6416b3f390 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-06-03  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
+       Allocate in multiples of 16 to avoid adding a few bytes free region the
+       windows bugs upon.
+       * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
+
 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
index ae0bb2fe21a868926404c3e2dc0c1beaf6fe62b2..7fbf8de873e88ef64345f18992fa69c323ea062c 100644 (file)
@@ -312,7 +312,7 @@ install_int13_handler (int noret __attribute__ ((unused)))
   total_size = INT13H_OFFSET (&grub_drivemap_mapstart)
     + (entries + 1) * sizeof (int13map_node_t);
   grub_dprintf ("drivemap", "Payload is %u bytes long\n", total_size);
-  handler_base = grub_mmap_malign_and_register (16, total_size,
+  handler_base = grub_mmap_malign_and_register (16, ALIGN_UP (total_size, 16),
                                                &drivemap_mmap,
                                                GRUB_MEMORY_RESERVED,
                                                GRUB_MMAP_MALLOC_LOW);