UefiCpuPkg/RegisterCpuFeaturesLib.h: Add new dependence types.

V4 changes:
  1. Update comments.

v3 changes:
  1. Move CPU_FEATURE_DEPENDENCE_TYPE definition to AcpiCpuData.h.
  2. Add comments for CPU_FEATURE_BEFORE/CPU_FEATURE_AFTER.

v1 changes:
Add new core/package dependence types which consumed by different MSRs.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
Eric Dong 2018-10-15 09:21:06 +08:00
parent d5aa2078f7
commit 87e9395109
1 changed files with 17 additions and 4 deletions

View File

@ -73,10 +73,23 @@
#define CPU_FEATURE_PPIN (32+11) #define CPU_FEATURE_PPIN (32+11)
#define CPU_FEATURE_PROC_TRACE (32+12) #define CPU_FEATURE_PROC_TRACE (32+12)
#define CPU_FEATURE_BEFORE_ALL BIT27 #define CPU_FEATURE_BEFORE_ALL BIT23
#define CPU_FEATURE_AFTER_ALL BIT28 #define CPU_FEATURE_AFTER_ALL BIT24
#define CPU_FEATURE_BEFORE BIT29 //
#define CPU_FEATURE_AFTER BIT30 // CPU_FEATURE_BEFORE and CPU_FEATURE_AFTER only mean Thread scope
// before and Thread scope after.
// It will be replace with CPU_FEATURE_THREAD_BEFORE and
// CPU_FEATURE_THREAD_AFTER, and should not be used anymore.
//
#define CPU_FEATURE_BEFORE BIT25
#define CPU_FEATURE_AFTER BIT26
#define CPU_FEATURE_THREAD_BEFORE CPU_FEATURE_BEFORE
#define CPU_FEATURE_THREAD_AFTER CPU_FEATURE_AFTER
#define CPU_FEATURE_CORE_BEFORE BIT27
#define CPU_FEATURE_CORE_AFTER BIT28
#define CPU_FEATURE_PACKAGE_BEFORE BIT29
#define CPU_FEATURE_PACKAGE_AFTER BIT30
#define CPU_FEATURE_END MAX_UINT32 #define CPU_FEATURE_END MAX_UINT32
/// @} /// @}