summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2018-03-19 13:00:13 +0800
committerHao Wu <hao.a.wu@intel.com>2018-03-20 15:53:25 +0800
commita7bbe9d20ba2df35e545bf9c8eec348d9c5f1b93 (patch)
tree668bc97f62ddc37efdff37b640ee4183e1762692 /BaseTools/Source/Python/Workspace
parente46440360e2209c5247d97461f1650ea86f8a191 (diff)
downloadedk2-a7bbe9d20ba2df35e545bf9c8eec348d9c5f1b93.tar.gz
edk2-a7bbe9d20ba2df35e545bf9c8eec348d9c5f1b93.tar.bz2
edk2-a7bbe9d20ba2df35e545bf9c8eec348d9c5f1b93.zip
UefiCpuPkg/MpInitLib: Disable interrupt at ExitBootServices AP Mwait
Within function ApWakeupFunction(): When source level debugger is enabled, AP interrupts will be enabled by EnableDebugAgent(). Then the AP function will be executed by: Procedure (Parameter); After the AP function returns, AP interrupts will be disabled when the APs are placed in loop mode (both HltLoop and MwaiLoop). However, at ExitBootServices, ApWakeupFunction() is called with 'Procedure' equals to RelocateApLoop(). (ExitBootServices callback registered within InitMpGlobalData()) RelocateApLoop() never returns, so it has to disable the AP interrupts by itself. However, we find that interrupts are only disabled for the HltLoop case, but not for the MwaitLoop case (within file MpFuncs.nasm). This commit adds the missing disabling of AP interrupts for MwaitLoop. Also, for X64, this commit will disable the interrupts before switching to 32-bit mode. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Jeff Fan <vanjeff_919@hotmail.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace')
0 files changed, 0 insertions, 0 deletions