X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FCore%2FDxeIplPeim%2FDxeLoad.c;h=8e1aeedac261b4ae56bb736e9ebffaa817cb4c9c;hp=5ec81b253419893cfc975dd89c9603ab0f51e49c;hb=f78797d5b7d1501c108c8e2c3c8850e06129a209;hpb=0d806227aa40993c2506d781b441a5a1ae85fb3a diff --git a/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c b/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c index 5ec81b2534..8e1aeedac2 100644 --- a/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c +++ b/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c @@ -320,7 +320,10 @@ Returns: ASSERT_EFI_ERROR (Status); Status = PeiRecovery->LoadRecoveryCapsule (PeiServices, PeiRecovery); - ASSERT_EFI_ERROR (Status); + if (EFI_ERROR (Status)) { + DEBUG ((EFI_D_ERROR, "Load Recovery Capsule Failed.(Status = %r)\n", Status)); + CpuDeadLoop (); + } // // Now should have a HOB with the DXE core w/ the old HOB destroyed @@ -405,8 +408,10 @@ Returns: // // If we get here, then the DXE Core returned. This is an error + // Dxe Core should not return. // - ASSERT_EFI_ERROR (Status); + ASSERT (FALSE); + CpuDeadLoop (); return EFI_OUT_OF_RESOURCES; }