arm64/xen: Consider alignment calling grub_arch_efi_linux_boot_image
PATCH v2 1/1 arm64/xen: Consider alignment calling grub_arch_efi_linux_boot_image
The Xen image is loaded alignment, not always at "start".
Signed-off-by Frediano Ziglio <[email protected]>
---
Changes since v1:
- indentation changes
--- grub-core/loader/arm64/xen_boot.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
grub-core/loader/arm64/xen_boot.c +5 -3
@@ -247,13 +247,15 @@ fail:static grub_err_t xen_boot (void ) { +grub_addr_t start; +grub_err_t err =finalize_params_xen_boot ();if (err)return err; -return grub_arch_efi_linux_boot_image (xen_hypervisor->start, - xen_hypervisor->size, - xen_hypervisor->cmdline); + start =xen_boot_address_align (xen_hypervisor->start, xen_hypervisor->align); +return grub_arch_efi_linux_boot_image (start, xen_hypervisor->size, + xen_hypervisor->cmdline); } static void
Signature · 7 lines
2.43.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel