mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
loader/arm64/xen_boot: Consider alignment calling grub_arch_efi_linux_boot_image()
The Xen image is loaded with an alignment, not always at "start". Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
This commit is contained in:
1 parent
e82609a476
commit
030a70fcad
1 file changed
+5
-1
@@ -247,11 +247,15 @@ fail:
|
|||||||
static grub_err_t
|
static grub_err_t
|
||||||
xen_boot (void)
|
xen_boot (void)
|
||||||
{
|
{
|
||||||
|
grub_addr_t start;
|
||||||
|
|
||||||
grub_err_t err = finalize_params_xen_boot ();
|
grub_err_t err = finalize_params_xen_boot ();
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
return grub_arch_efi_linux_boot_image (xen_hypervisor->start,
|
start = xen_boot_address_align (xen_hypervisor->start,
|
||||||
|
xen_hypervisor->align);
|
||||||
|
return grub_arch_efi_linux_boot_image (start,
|
||||||
xen_hypervisor->size,
|
xen_hypervisor->size,
|
||||||
xen_hypervisor->cmdline);
|
xen_hypervisor->cmdline);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user