mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
Align kern_end on page boundary as a precaution
This commit is contained in:
1 parent
839aec66c9
commit
a3e99e1a45
1 file changed
+3
-1
+3
-1
@@ -1008,7 +1008,7 @@ grub_netbsd_boot (void)
|
|||||||
err = grub_relocator_alloc_chunk_addr (relocator, &curarg,
|
err = grub_relocator_alloc_chunk_addr (relocator, &curarg,
|
||||||
arg_target, tag_buf_len
|
arg_target, tag_buf_len
|
||||||
+ sizeof (struct grub_netbsd_bootinfo)
|
+ sizeof (struct grub_netbsd_bootinfo)
|
||||||
+ tag_count * sizeof (grub_addr_t));
|
+ tag_count * sizeof (grub_uint32_t));
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
@@ -1322,6 +1322,8 @@ grub_bsd_load (int argc, char *argv[])
|
|||||||
grub_file_close (file);
|
grub_file_close (file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kern_end = ALIGN_PAGE (kern_end);
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|
||||||
if (grub_errno != GRUB_ERR_NONE)
|
if (grub_errno != GRUB_ERR_NONE)
|
||||||
|
|||||||
Reference in new issue
Block a user