summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2015-09-25 06:29:51 +0000
committervanjeff <vanjeff@Edk2>2015-09-25 06:29:51 +0000
commit28f27af6f007c3794fcc9d098ef91713160f4e5b (patch)
treea4a86884f0d33c77c010cc48d26f9b0b4df80691
parent630699bd8080021ab75338bb70f74c671f068a9e (diff)
downloadedk2-28f27af6f007c3794fcc9d098ef91713160f4e5b.zip
edk2-28f27af6f007c3794fcc9d098ef91713160f4e5b.tar.gz
edk2-28f27af6f007c3794fcc9d098ef91713160f4e5b.tar.bz2
UefiCpuPkg/CpuMpPei: Fix wrong CpuData pointer
CpuData buffer should be located in allocated buffer instead of at end of WakeupBuffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18550 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--UefiCpuPkg/CpuMpPei/CpuMpPei.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
index 81d5b19..d5bc0c9 100644
--- a/UefiCpuPkg/CpuMpPei/CpuMpPei.c
+++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
@@ -428,7 +428,8 @@ PrepareAPStartupVector (
PeiCpuMpData->CpuCount = 1;
PeiCpuMpData->BspNumber = 0;
- PeiCpuMpData->CpuData = (PEI_CPU_DATA *) (PeiCpuMpData->MpCpuExchangeInfo + 1);
+ PeiCpuMpData->CpuData = (PEI_CPU_DATA *) (PeiCpuMpData->BackupBuffer +
+ PeiCpuMpData->BackupBufferSize);
PeiCpuMpData->CpuData[0].ApicId = GetInitialApicId ();
PeiCpuMpData->CpuData[0].Health.Uint32 = 0;
PeiCpuMpData->EndOfPeiFlag = FALSE;