]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MpInitLib: fix register restore issue in AP wakeup
authorJian J Wang <jian.j.wang@intel.com>
Mon, 3 Sep 2018 02:47:54 +0000 (10:47 +0800)
committerJian J Wang <jian.j.wang@intel.com>
Mon, 10 Sep 2018 01:28:27 +0000 (09:28 +0800)
commite09b6b5953db38db87b84c80a2e95a82a1c91020
tree62cac89b1d5da9661dddb41dcc6d73ce5972eaec
parentfc0e7fd5e8aad193fcc3479634d5c69996f6460a
UefiCpuPkg/MpInitLib: fix register restore issue in AP wakeup

The conflict issues are introduced by Stack Guard feature enabled for
PEI.

The first is CR0 which should be restored after CR3 and CR4.
Another is TR which should not be passed from BSP to AP during init
phase.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: "Ware, Ryan R" <ryan.r.ware@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/Library/MpInitLib/MpLib.c