]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Include/Register/Cpuid.h
UefiCpuPkg/CpuMpPei: Add GetApLoopMode() to get AP loop mode
authorJeff Fan <jeff.fan@intel.com>
Fri, 18 Dec 2015 03:24:27 +0000 (03:24 +0000)
committervanjeff <vanjeff@Edk2>
Fri, 18 Dec 2015 03:24:27 +0000 (03:24 +0000)
commit4de216c01641fe4362cabfa0687378a973490832
treee24a5835c1a90514a2f678442c0a3c83777bd78c
parent9d39ed931bf59b8d5afdccf7e1c30ece817b7a04
UefiCpuPkg/CpuMpPei: Add GetApLoopMode() to get AP loop mode

Add GetApLoopMode() that will get PCD PcdCpuApLoopMode firstly. If it is
ApInMwaitLoop, we will check if MONITOR/MWAIT feature supported by CPUID. If
MONITOR/MWAIT feature is not supported, force AP loop mode to ApInHltLoop.

GetApLoopMode() also return the largest line size required.

Contributed-under: TianoCore Contribution Agreement 1.0
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Tested-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19343 6f19259b-4bc3-4df7-8a09-765794883524
UefiCpuPkg/CpuMpPei/CpuMpPei.c
UefiCpuPkg/CpuMpPei/CpuMpPei.h
UefiCpuPkg/CpuMpPei/CpuMpPei.inf
UefiCpuPkg/Include/Register/Cpuid.h