/** @file\r
\r
- Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
\r\r
This program and the accompanying materials are licensed and made available under\r\r
the terms and conditions of the BSD License that accompanies this distribution. \r\r
EFI_PLATFORM_INFO_HOB *PlatformInfo;\r
EFI_PEI_HOB_POINTERS Hob;\r
EFI_PLATFORM_CPU_INFO PlatformCpuInfo;\r
+ EFI_SMRAM_HOB_DESCRIPTOR_BLOCK *DescriptorBlock;\r
+ UINT64 Size;\r
+\r
+ //\r
+ // Make sure last SMRAM region is aligned\r
+ //\r
+ Hob.Raw = GetFirstGuidHob (&gEfiSmmPeiSmramMemoryReserveGuid);\r
+ if (Hob.Raw != NULL) {\r
+ DescriptorBlock = GET_GUID_HOB_DATA (Hob.Raw);\r
+ Size = DescriptorBlock->Descriptor[DescriptorBlock->NumberOfSmmReservedRegions - 1].PhysicalSize;\r
+ Size = LShiftU64 (1, HighBitSet64 (Size - 1) + 1);\r
+ DescriptorBlock->Descriptor[DescriptorBlock->NumberOfSmmReservedRegions - 1].PhysicalSize = Size;\r
+ }\r
\r
//\r
// Initialize SmbusPolicy PPI\r
/*++\r
\r
- Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
\r\r
This program and the accompanying materials are licensed and made available under\r\r
the terms and conditions of the BSD License that accompanies this distribution. \r\r
#include <Ppi/MasterBootMode.h>\r
#include <Guid/PlatformCpuInfo.h>\r
#include <Guid/OsSelection.h>\r
+#include <Guid/SmramMemoryReserve.h>\r
\r
#define SMC_LAN_ON 0x46\r
#define SMC_LAN_OFF 0x47\r
#\r
#\r
-# Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved\r
+# Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved\r
# \r\r
# This program and the accompanying materials are licensed and made available under\r\r
# the terms and conditions of the BSD License that accompanies this distribution. \r\r
gEfiNormalSetupGuid\r
gEfiMemoryTypeInformationGuid\r
gOsSelectionVariableGuid\r
+ gEfiSmmPeiSmramMemoryReserveGuid\r
\r
[Pcd.common]\r
gPlatformModuleTokenSpaceGuid.PcdFlashFvMainBase\r