mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
arm64: set correct length of device path end entry
The length of the Device Path End entry in the grub_linux_boot() function was incorrectly set to 0. This triggers an assert failure in debug builds of Tianocore. Set it to sizeof (grub_efi_device_path_t).
This commit is contained in:
1 parent
e7cfa8d5e1
commit
4d21c10199
2 files changed
+5
-1
No files matched your search
@@ -1,3 +1,7 @@
|
|||||||
|
2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
|
||||||
|
|
||||||
|
* grub-core/loader/arm64/linux.c: correctly set device path end length.
|
||||||
|
|
||||||
2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
|
2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
* util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
|
* util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ grub_linux_boot (void)
|
|||||||
|
|
||||||
mempath[1].header.type = GRUB_EFI_END_DEVICE_PATH_TYPE;
|
mempath[1].header.type = GRUB_EFI_END_DEVICE_PATH_TYPE;
|
||||||
mempath[1].header.subtype = GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE;
|
mempath[1].header.subtype = GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE;
|
||||||
mempath[1].header.length = 0;
|
mempath[1].header.length = sizeof (grub_efi_device_path_t);
|
||||||
|
|
||||||
b = grub_efi_system_table->boot_services;
|
b = grub_efi_system_table->boot_services;
|
||||||
status = b->load_image (0, grub_efi_image_handle,
|
status = b->load_image (0, grub_efi_image_handle,
|
||||||
|
|||||||
Reference in new issue
Block a user