multiboot2: fix efi{32,64]_ih generation

This commit is contained in:
Philipp Schuster 2024-05-22 23:04:24 +02:00 committed by Philipp Schuster
parent 1567ddd7bc
commit 63d29af182

View File

@ -592,15 +592,15 @@ reloc_fail:
#if defined (UEFI) #if defined (UEFI)
{ {
#if defined (__i386__) #if defined (__i386__)
struct multiboot_tag_efi64_ih *tag = (struct multiboot_tag_efi64_ih *)(mb2_info + info_idx);
tag->type = MULTIBOOT_TAG_TYPE_EFI64_IH;
tag->size = sizeof(struct multiboot_tag_efi64_ih);
#elif defined (__x86_64__)
struct multiboot_tag_efi32_ih *tag = (struct multiboot_tag_efi32_ih *)(mb2_info + info_idx); struct multiboot_tag_efi32_ih *tag = (struct multiboot_tag_efi32_ih *)(mb2_info + info_idx);
tag->type = MULTIBOOT_TAG_TYPE_EFI32_IH; tag->type = MULTIBOOT_TAG_TYPE_EFI32_IH;
tag->size = sizeof(struct multiboot_tag_efi32_ih); tag->size = sizeof(struct multiboot_tag_efi32_ih);
#elif defined (__x86_64__)
struct multiboot_tag_efi64_ih *tag = (struct multiboot_tag_efi64_ih *)(mb2_info + info_idx);
tag->type = MULTIBOOT_TAG_TYPE_EFI64_IH;
tag->size = sizeof(struct multiboot_tag_efi64_ih);
#endif #endif
tag->pointer = (uintptr_t)efi_image_handle; tag->pointer = (uintptr_t)efi_image_handle;