]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Library/MpInitLib/MpLib.c
UefiCpuPkg/MpLib.c: Add checking CR0 PG bit
authorJeff Fan <jeff.fan@intel.com>
Mon, 27 Mar 2017 07:00:00 +0000 (15:00 +0800)
committerJeff Fan <jeff.fan@intel.com>
Tue, 28 Mar 2017 01:49:29 +0000 (09:49 +0800)
commit844b2d072d6405806398f096acc904e478d7299d
treeb34fe58b90f5209e4d334f4741686f1802ca56d8
parent98eb009563691bd940f3d31cc8a2c1c8478cd605
UefiCpuPkg/MpLib.c: Add checking CR0 PG bit

If CR0 PG bit is not set, it means paging is not enabled on BSP. Thus, Execute
Disable feature is not working actually. Thus, we cannot enable it on APs.

v2:
  Correct the commit log.

Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
UefiCpuPkg/Library/MpInitLib/MpLib.c