diff options
author | Jeff Fan <jeff.fan@intel.com> | 2015-09-25 07:12:21 +0000 |
---|---|---|
committer | hwu1225 <hwu1225@Edk2> | 2015-09-25 07:12:21 +0000 |
commit | 59fd15c5a2174a6a6fc4133964e6d5b520b58663 (patch) | |
tree | 9dc0e0c21521ea1d65ed076d154f302963feec8f /UefiCpuPkg/CpuMpPei | |
parent | 9228f69e2222ad78a5ba4e1f68446df8df6ee96e (diff) | |
download | edk2-platforms-59fd15c5a2174a6a6fc4133964e6d5b520b58663.tar.xz |
UefiCpuPkg/CpuMpPei: Fix wrong CpuData pointer
CpuData buffer should be located in allocated buffer instead of at end of
WakeupBuffer.
(Sync patch r18550 from main trunk.)
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/branches/UDK2015@18552 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei')
-rw-r--r-- | UefiCpuPkg/CpuMpPei/CpuMpPei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg/CpuMpPei/CpuMpPei.c index 81d5b19fca..d5bc0c9b80 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;
|