From 40bc7509142af30d8befd198afbdeeaa58964234 Mon Sep 17 00:00:00 2001 From: Satya Yarlagadda Date: Wed, 20 Jul 2016 14:49:15 +0800 Subject: IntelFsp2Pkg: Remove CarBase and CarSize from FSP_GLOBAL_DATA CarBase and CarSize in Fsp Global data structure are no longer needed as Boot loader doesn't pass them to FSP even in case that BL chooses to skip calling the FspTempRamInit API. In case of FspTempramInit is called, we can use the PCDs to identify the CarBase and Size. Hence we remove the relevant code. Cc: Giri P Mudusuru Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Satya Yarlagadda Reviewed-by: Giri P Mudusuru Reviewed-by: Jiewen Yao --- IntelFsp2Pkg/FspSecCore/SecFsp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'IntelFsp2Pkg/FspSecCore/SecFsp.c') diff --git a/IntelFsp2Pkg/FspSecCore/SecFsp.c b/IntelFsp2Pkg/FspSecCore/SecFsp.c index 7259a55bbd..96f8fb7554 100644 --- a/IntelFsp2Pkg/FspSecCore/SecFsp.c +++ b/IntelFsp2Pkg/FspSecCore/SecFsp.c @@ -76,7 +76,7 @@ SecGetPlatformData ( // // Pointer to the size field // - TopOfCar = FspPlatformData->CarBase + FspPlatformData->CarSize; + TopOfCar = PcdGet32(PcdTemporaryRamBase) + PcdGet32(PcdTemporaryRamSize); StackPtr = (UINT32 *)(TopOfCar - sizeof (UINT32)); if (*(StackPtr - 1) == FSP_MCUD_SIGNATURE) { @@ -140,8 +140,6 @@ FspGlobalDataInit ( PeiFspData->CoreStack = BootLoaderStack; PeiFspData->PerfIdx = 2; PeiFspData->PerfSig = FSP_PERFORMANCE_DATA_SIGNATURE; - PeiFspData->PlatformData.CarBase = AsmReadMsr32 (0x200) & ~(0x6); - PeiFspData->PlatformData.CarSize = ~(AsmReadMsr32(0x201) & ~(0x800)) + 1; SetFspMeasurePoint (FSP_PERF_ID_API_FSP_MEMORY_INIT_ENTRY); -- cgit v1.2.3