X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPei%2FIpf%2FSwitchToCacheMode.c;h=1f261af5cb503978aa2f764f4a073a4f9181fcfa;hb=a3a15d2108bb276f8a668a059c86ccfc101e5986;hp=45676f0e4907857a65bcc78978631f54d89d0f6f;hpb=dd98e32c6b5139bcf2ae5f8516490ad44adff861;p=mirror_edk2.git diff --git a/MdeModulePkg/Core/Pei/Ipf/SwitchToCacheMode.c b/MdeModulePkg/Core/Pei/Ipf/SwitchToCacheMode.c index 45676f0e49..1f261af5cb 100644 --- a/MdeModulePkg/Core/Pei/Ipf/SwitchToCacheMode.c +++ b/MdeModulePkg/Core/Pei/Ipf/SwitchToCacheMode.c @@ -44,13 +44,6 @@ Returns: { EFI_HOB_HANDOFF_INFO_TABLE *Phit; - if (CoreData == NULL) { - // - // the first call with CoreData as NULL. - // - return; - } - if ((GetHandOffStatus().r10 & 0xFF) == RecoveryFn) { CoreData->StackBase = CoreData->StackBase & CACHE_MODE_ADDRESS_MASK; CoreData->HobList.Raw = (UINT8 *)((UINTN)CoreData->HobList.Raw & CACHE_MODE_ADDRESS_MASK);