Vlv2TbltDevicePkg/PlatformInitPei: Workaround unaligned SMRAM size
https://bugzilla.tianocore.org/show_bug.cgi?id=260 The PiSmmCPuDxeSmm module requires the SMRR base address and length to be aligned. The memory initialization for Vlv2TbltDevicePkg produces an SMRAM base address that is on a 16MB boundary and an SMRAM length of 12MB. The SMRAM length is rounded up to 16MB. 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>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
@@ -820,6 +820,19 @@ PlatformEarlyInitEntry (
|
||||
EFIAPI
|
||||
PlatformEarlyInitEntry (
|
||||
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
SYSTEM_CONFIGURATION SystemConfiguration;
|
||||
EFI_PLATFORM_INFO_HOB *PlatformInfo;
|
||||
EFI_PEI_HOB_POINTERS Hob;
|
||||
EFI_PLATFORM_CPU_INFO PlatformCpuInfo;
|
||||
EFI_SMRAM_HOB_DESCRIPTOR_BLOCK *DescriptorBlock;
|
||||
UINT64 Size;
|
||||
|
||||
//
|
||||
// Make sure last SMRAM region is aligned
|
||||
//
|
||||
Hob.Raw = GetFirstGuidHob (&gEfiSmmPeiSmramMemoryReserveGuid);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
@@ -83,6 +83,7 @@ Abstract:
|
||||
#include <Ppi/Reset.h>
|
||||
#include <Ppi/EndOfPeiPhase.h>
|
||||
#include <Ppi/MemoryDiscovered.h>
|
||||
#include <Ppi/VlvPolicy.h>
|
||||
#include <Guid/GlobalVariable.h>
|
||||
#include <Ppi/RecoveryModule.h>
|
||||
#include <Ppi/DeviceRecoveryModule.h>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#
|
||||
#
|
||||
# Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
|
||||
# Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved
|
||||
#
|
||||
|
||||
# This program and the accompanying materials are licensed and made available under
|
||||
@@ -102,6 +102,7 @@ ENTRY_POINT = PlatformEarlyInitEntry
|
||||
gEfiPlatformInfoGuid
|
||||
gEfiPlatformBootModeGuid
|
||||
gEfiPlatformCpuInfoGuid
|
||||
gEfiGlobalVariableGuid
|
||||
gRecoveryOnFatFloppyDiskGuid
|
||||
gRecoveryOnFatUsbDiskGuid
|
||||
gRecoveryOnFatIdeDiskGuid
|
||||
|
Reference in New Issue
Block a user