audk/Vlv2TbltDevicePkg/PlatformInitPei
Michael Kinney c497dcc8e5 Vlv2TbltDevicePkg/PlatformInitPei: Better SMRAM size alignment
https://bugzilla.tianocore.org/show_bug.cgi?id=260

Update workaround to be more generic.

* Search for the largest region between 1MB and 4GB
* Find all adjacent regions to compute total size
* Minimum aligned size if 4KB
* Mark extended region to align size as EFI_ALLOCATED
* If an adjacent EFI_ALLOCATED region is present, then
  increase the size of the adjacent region.
* If adjacent EFI_ALLOCATED region is not present, then
  allocate a new HOB with one extra entry to describe
  the extended region to align the total size.  Preserve
  the last entry in the descriptor list for compatibility.

This is a workaround until the binary module that produces the
gEfiSmmPeiSmramMemoryReserveGuid HOB is updated

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: David Wei <david.wei@intel.com>
Cc: Mang Guo <mang.guo@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2016-12-07 08:57:06 -08:00
..
BootMode.c Sync the branch changes to trunk. 2015-06-11 02:50:20 +00:00
CpuInitPeim.c Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00
Dimm.c Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00
FlashMap.c Vlv2TbltDevicePkg/PlatformInitPei: rebase to ARRAY_SIZE() 2016-10-27 11:15:21 +02:00
LegacySpeaker.c Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00
LegacySpeaker.h Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00
MchInit.c Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00
MemoryCallback.c Vlv2TbltDevicePkg/PlatformInitPei: Remove the unused variables 2016-08-03 11:02:15 +08:00
MemoryPeim.c Vlv2TbltDevicePkg/PlatformInitPei: Explicit call to dump MTRR Setting 2016-07-20 11:13:43 +08:00
PchInitPeim.c Vlv2TbltDevicePkg/PlatformInitPei: Support USB init 2016-09-07 16:43:54 +08:00
PlatformEarlyInit.c Vlv2TbltDevicePkg/PlatformInitPei: Better SMRAM size alignment 2016-12-07 08:57:06 -08:00
PlatformEarlyInit.h Vlv2TbltDevicePkg/PlatformInitPei: Workaround unaligned SMRAM size 2016-11-29 08:17:50 -08:00
PlatformInfoInit.c Vlv2TbltDevicePkg: Fix typos in comments 2016-10-27 14:31:55 +08:00
PlatformInitPei.inf Vlv2TbltDevicePkg/PlatformInitPei: Workaround unaligned SMRAM size 2016-11-29 08:17:50 -08:00
PlatformSsaInitPeim.c Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00
Recovery.c Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00
Stall.c Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to 2015-01-12 09:37:20 +00:00