3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include <Library/HobLib.h>
17 #include <Library/BaseLib.h>
18 #include <Library/DebugLib.h>
19 #include <Guid/MemoryConfigData.h>
20 #include <PlatformFspLib.h>
23 PlatformHobCreateFromFsp (
24 IN CONST EFI_PEI_SERVICES
**PeiServices
,
33 // Other hob, todo: put this into FspWrapPlatformLib
35 if ((HobList
= GetNextGuidHob (&gEfiMemoryConfigDataGuid
, HobList
)) != NULL
) {
36 HobData
= GET_GUID_HOB_DATA (HobList
);
37 DataSize
= GET_GUID_HOB_DATA_SIZE(HobList
);
38 DEBUG((EFI_D_ERROR
, "gEfiMemoryConfigDataGuid Hob found: 0x%x.\n", DataSize
));
40 NewHobData
= BuildGuidHob (&gEfiMemoryConfigDataGuid
, DataSize
);
41 (*PeiServices
)->CopyMem (