mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/MpInitLib: fix incorrect stack top init for cpu0
As the name suggests, CpuMpData->CpuInfoInHob[0].ApTopOfStack must be init to the top of stack. But the MpInitLibInitialize() passed the base address of stack to InitializeApData(), which is not correct. Although this stack is not used for BSP, it's should be fixed in case of misunderstanding and future possible code changes. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
parent
643e8e4bd4
commit
f2655dcf28
|
@ -1502,7 +1502,7 @@ MpInitLibInitialize (
|
|||
//
|
||||
// Set BSP basic information
|
||||
//
|
||||
InitializeApData (CpuMpData, 0, 0, CpuMpData->Buffer);
|
||||
InitializeApData (CpuMpData, 0, 0, CpuMpData->Buffer + ApStackSize);
|
||||
//
|
||||
// Save assembly code information
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue