Set PcdEmuVariableNvStoreReserved with the value in PlatformInfoHob. It
is the address of the EmuVariableNvStore reserved in Pei-less startup.
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
PlatformInfoHob->PcdCpuBootLogicalProcessorNumber\r
));\r
\r
+ PcdSet64S (PcdEmuVariableNvStoreReserved, PlatformInfoHob->PcdEmuVariableNvStoreReserved);\r
+\r
if (TdIsEnabled ()) {\r
PcdStatus = PcdSet64S (PcdTdxSharedBitMask, TdSharedPageMask ());\r
ASSERT_RETURN_ERROR (PcdStatus);\r
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr\r
gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask\r
gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved\r