]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Library/CpuCommonFeaturesLib/X2Apic.c
UefiCpuPkg/CpuCommonFeaturesLib: Support X2APIC enable
authorJeff Fan <jeff.fan@intel.com>
Wed, 24 May 2017 05:45:25 +0000 (13:45 +0800)
committerJeff Fan <jeff.fan@intel.com>
Sat, 27 May 2017 05:29:38 +0000 (13:29 +0800)
commit6661abb6953fcb6dafe4eee9ec741685ceb3a552
tree2d3579a8ac8355f3a435abd431332a1ab85b7712
parentdf642d70e3966c5265e8992d63e39309ab25db7b
UefiCpuPkg/CpuCommonFeaturesLib: Support X2APIC enable

Current X2APIC is enabled in MpInitLib (used by CpuMpPei and CpuDxe) to follow
SDM suggestion. That means we only enable X2APIC if we found there are any
initial CPU ID value >= 255.

This patch is to provide one chance for platform to enable X2APIC even there is
no any initial CPU ID value >= 255.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeatures.h
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.c
UefiCpuPkg/Library/CpuCommonFeaturesLib/X2Apic.c