]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/LoadLinuxLib/Linux.c
OvmfPkg: EFI handover flags are in Bp->hdr.xloadflags
[mirror_edk2.git] / OvmfPkg / Library / LoadLinuxLib / Linux.c
index 4a3e2c13cb349eb9ce481bf419c7a61045ab6e9b..37b14f5612efe56df34a4032ced465ec10138922 100644 (file)
@@ -647,7 +647,7 @@ LoadLinux (
 \r
   Bp->hdr.code32_start = (UINT32)(UINTN) Kernel;\r
   if (Bp->hdr.version >= 0x20c && Bp->hdr.handover_offset &&\r
-      (Bp->hdr.load_flags & (sizeof (UINTN) == 4 ? BIT2 : BIT3))) {\r
+      (Bp->hdr.xloadflags & (sizeof (UINTN) == 4 ? BIT2 : BIT3))) {\r
     DEBUG ((EFI_D_INFO, "Jumping to kernel EFI handover point at ofs %x\n", Bp->hdr.handover_offset));\r
 \r
     DisableInterrupts ();\r