summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/VariableAuthenticated
diff options
context:
space:
mode:
authorNi, Ruiyu <ruiyu.ni@intel.com>2018-07-02 14:01:35 +0800
committerEric Dong <eric.dong@intel.com>2018-07-12 10:56:56 +0800
commitc563077a380437c114aba4c95be65eb963ebc1f3 (patch)
tree15f4a0f4095d8d94b2ae08dd9b33f7623adefbfe /SecurityPkg/VariableAuthenticated
parent895b87e38015e0698c6a5c0633e0156b038a56f1 (diff)
downloadedk2-c563077a380437c114aba4c95be65eb963ebc1f3.tar.gz
edk2-c563077a380437c114aba4c95be65eb963ebc1f3.tar.bz2
edk2-c563077a380437c114aba4c95be65eb963ebc1f3.zip
UefiCpuPkg/MpInitLib: Avoid calling PEI services from AP
Today's MpInitLib PEI implementation directly calls PeiServices->GetHobList() from AP which may cause racing issue. This patch fixes this issue by duplicating IDT for APs. Because CpuMpData structure is stored just after IDT, the CpuMPData address equals to IDTR.BASE + IDTR.LIMIT + 1. v2: 1. Add ALIGN_VALUE() on BufferSize. 2. Add ASSERT() to make sure no memory usage outside of the allocated buffer. 3. Add more comments in InitConfig path when restoring CpuData[0].VolatileRegisters. Cc: Jeff Fan <vanjeff_919@hotmail.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Fish Andrew <afish@apple.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'SecurityPkg/VariableAuthenticated')
0 files changed, 0 insertions, 0 deletions