OvmfPkg: Use newly defined Unaccepted Memory Type
EFI_RESOURCE_MEMORY_UNACCEPTED has been officially defined in the PI 1.8 specification. So all temporary solutions have been replaced with the actual definition. Cc: Felix Polyudov <felixp@ami.com> Cc: Dhanaraj V <vdhanaraj@ami.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Sachin Ganesh <sachinganesh@ami.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
This commit is contained in:
committed by
mergify[bot]
parent
f3b0ee0cee
commit
b82c9631da
@@ -17,7 +17,7 @@
|
||||
#include <IndustryStandard/Tdx.h>
|
||||
#include <IndustryStandard/IntelTdx.h>
|
||||
#include <Library/PeiServicesLib.h>
|
||||
#include <Pi/PrePiHob.h>
|
||||
#include <Pi/PiHob.h>
|
||||
#include <WorkArea.h>
|
||||
#include <ConfidentialComputingGuestAttr.h>
|
||||
|
||||
@@ -40,9 +40,9 @@ BuildResourceDescriptorHobForUnacceptedMemory (
|
||||
EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute;
|
||||
UINT64 MaxAcceptedMemoryAddress;
|
||||
|
||||
ASSERT (Hob->ResourceType == BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED);
|
||||
ASSERT (Hob->ResourceType == EFI_RESOURCE_MEMORY_UNACCEPTED);
|
||||
|
||||
ResourceType = BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED;
|
||||
ResourceType = EFI_RESOURCE_MEMORY_UNACCEPTED;
|
||||
ResourceAttribute = Hob->ResourceAttribute;
|
||||
PhysicalStart = Hob->PhysicalStart;
|
||||
ResourceLength = Hob->ResourceLength;
|
||||
@@ -104,7 +104,7 @@ TransferTdxHobList (
|
||||
ResourceType = Hob.ResourceDescriptor->ResourceType;
|
||||
ResourceAttribute = Hob.ResourceDescriptor->ResourceAttribute;
|
||||
|
||||
if (ResourceType == BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED) {
|
||||
if (ResourceType == EFI_RESOURCE_MEMORY_UNACCEPTED) {
|
||||
BuildResourceDescriptorHobForUnacceptedMemory (Hob.ResourceDescriptor);
|
||||
} else {
|
||||
BuildResourceDescriptorHob (
|
||||
|
Reference in New Issue
Block a user