Commit b514a78a authored by Leif Lindholm's avatar Leif Lindholm Committed by Colin Watson

i386/efi: update loader to new interfaces

This updates the non-upstream loader/i386/efi/linux.c to build
correctly with the patches in this branch appled.
Signed-off-by: default avatarLeif Lindholm <>

Last-Update: 2018-12-06

Patch-Name: linuxefi-update-to-new-interfaces.patch
parent 4a4d53df
......@@ -201,7 +201,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
int argc, char *argv[])
grub_file_t file = 0;
struct linux_kernel_header lh;
struct linux_i386_kernel_header lh;
grub_ssize_t len, start, filelen;
void *kernel;
......@@ -312,7 +312,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
start = (lh.setup_sects + 1) * 512;
len = grub_file_size(file) - start;
kernel_mem = grub_efi_allocate_pages(lh.pref_address,
kernel_mem = grub_efi_allocate_fixed(lh.pref_address,
if (!kernel_mem)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment