]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Align kern_end on page boundary as a precaution
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 19 Jan 2010 08:16:26 +0000 (09:16 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 19 Jan 2010 08:16:26 +0000 (09:16 +0100)
loader/i386/bsd.c

index ed9a1dbaef392ae77d554c90249f6da494dc6ce4..1d616c7b2213a93e855122d756d1d844ba9726ac 100644 (file)
@@ -1008,7 +1008,7 @@ grub_netbsd_boot (void)
   err = grub_relocator_alloc_chunk_addr (relocator, &curarg,
                                         arg_target, tag_buf_len
                                         + sizeof (struct grub_netbsd_bootinfo)
-                                        + tag_count * sizeof (grub_addr_t));
+                                        + tag_count * sizeof (grub_uint32_t));
   if (err)
     return err;
 
@@ -1322,6 +1322,8 @@ grub_bsd_load (int argc, char *argv[])
       grub_file_close (file);
     }
 
+  kern_end = ALIGN_PAGE (kern_end);
+
 fail:
 
   if (grub_errno != GRUB_ERR_NONE)