Skip to content

Commit

Permalink
UefiCpuPkg/CpuMpPei: Fix wrong CpuData pointer
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Star Zeng <[email protected]>

git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@18552 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
vanjeff authored and hwu1225 committed Sep 25, 2015
1 parent 9228f69 commit 59fd15c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UefiCpuPkg/CpuMpPei/CpuMpPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 59fd15c

Please sign in to comment.