/** @file Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PiPei.h" #include #include #include #include #include EFI_STATUS PlatformHobCreateFromFsp ( IN CONST EFI_PEI_SERVICES **PeiServices, VOID *HobList ) { VOID *HobData; VOID *NewHobData; UINTN DataSize; // // Other hob, todo: put this into FspWrapPlatformLib // if ((HobList = GetNextGuidHob (&gEfiMemoryConfigDataGuid, HobList)) != NULL) { HobData = GET_GUID_HOB_DATA (HobList); DataSize = GET_GUID_HOB_DATA_SIZE(HobList); DEBUG((EFI_D_ERROR, "gEfiMemoryConfigDataGuid Hob found: 0x%x.\n", DataSize)); NewHobData = BuildGuidHob (&gEfiMemoryConfigDataGuid, DataSize); (*PeiServices)->CopyMem ( NewHobData, HobData, DataSize ); } return EFI_SUCCESS; }