Fix compilation for x86_64-efi.
This commit is contained in:
parent
219603c2e6
commit
46159d35d3
2 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,7 @@ efi_boot (struct grub_relocator *rel,
|
||||||
#else
|
#else
|
||||||
struct grub_relocator_efi_state state_efi = MULTIBOOT_EFI_INITIAL_STATE;
|
struct grub_relocator_efi_state state_efi = MULTIBOOT_EFI_INITIAL_STATE;
|
||||||
#endif
|
#endif
|
||||||
state_efi.MULTIBOOT_EFI_ENTRY_REGISTER = grub_multiboot_payload_eip;
|
state_efi.MULTIBOOT_EFI_ENTRY_REGISTER = GRUB_MULTIBOOT (payload_eip);
|
||||||
state_efi.MULTIBOOT_EFI_MBI_REGISTER = target;
|
state_efi.MULTIBOOT_EFI_MBI_REGISTER = target;
|
||||||
|
|
||||||
grub_relocator_efi_boot (rel, state_efi);
|
grub_relocator_efi_boot (rel, state_efi);
|
||||||
|
|
|
@ -43,6 +43,10 @@
|
||||||
.rcx = 0, \
|
.rcx = 0, \
|
||||||
.rdx = 0, \
|
.rdx = 0, \
|
||||||
}
|
}
|
||||||
|
#define MULTIBOOT2_EFI_INITIAL_STATE { .rax = MULTIBOOT2_BOOTLOADER_MAGIC, \
|
||||||
|
.rcx = 0, \
|
||||||
|
.rdx = 0, \
|
||||||
|
}
|
||||||
#define MULTIBOOT_EFI_ENTRY_REGISTER rip
|
#define MULTIBOOT_EFI_ENTRY_REGISTER rip
|
||||||
#define MULTIBOOT_EFI_MBI_REGISTER rbx
|
#define MULTIBOOT_EFI_MBI_REGISTER rbx
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue