mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/RegisterCpuFeaturesLib: Remove useless functions.
Remove useless APIs, simplify the code logic. BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1375 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
parent
37f9fea5b8
commit
79be3d2751
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Register CPU Features Library to register and manage CPU features.
|
Register CPU Features Library to register and manage CPU features.
|
||||||
|
|
||||||
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -166,40 +166,6 @@ IsCpuFeatureInSetting (
|
||||||
IN UINT32 Feature
|
IN UINT32 Feature
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
|
||||||
Determines if a CPU feature is set in PcdCpuFeaturesCapability bit mask.
|
|
||||||
|
|
||||||
@param[in] Feature The bit number of the CPU feature to check in the PCD
|
|
||||||
PcdCpuFeaturesCapability.
|
|
||||||
|
|
||||||
@retval TRUE The CPU feature is set in PcdCpuFeaturesCapability.
|
|
||||||
@retval FALSE The CPU feature is not set in PcdCpuFeaturesCapability.
|
|
||||||
|
|
||||||
@note This service could be called by BSP only.
|
|
||||||
**/
|
|
||||||
BOOLEAN
|
|
||||||
EFIAPI
|
|
||||||
IsCpuFeatureCapability (
|
|
||||||
IN UINT32 Feature
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
Determines if a CPU feature is set in PcdCpuFeaturesUserConfiguration bit mask.
|
|
||||||
|
|
||||||
@param[in] Feature The bit number of the CPU feature to check in the PCD
|
|
||||||
PcdCpuFeaturesUserConfiguration.
|
|
||||||
|
|
||||||
@retval TRUE The CPU feature is set in PcdCpuFeaturesUserConfiguration.
|
|
||||||
@retval FALSE The CPU feature is not set in PcdCpuFeaturesUserConfiguration.
|
|
||||||
|
|
||||||
@note This service could be called by BSP only.
|
|
||||||
**/
|
|
||||||
BOOLEAN
|
|
||||||
EFIAPI
|
|
||||||
IsCpuFeatureUserConfiguration (
|
|
||||||
IN UINT32 Feature
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prepares for the data used by CPU feature detection and initialization.
|
Prepares for the data used by CPU feature detection and initialization.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
CPU Register Table Library functions.
|
CPU Register Table Library functions.
|
||||||
|
|
||||||
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -1242,56 +1242,6 @@ IsCpuFeatureInSetting (
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
Determines if a CPU feature is set in PcdCpuFeaturesCapability bit mask.
|
|
||||||
|
|
||||||
@param[in] Feature The bit number of the CPU feature to check in the PCD
|
|
||||||
PcdCpuFeaturesCapability
|
|
||||||
|
|
||||||
@retval TRUE The CPU feature is set in PcdCpuFeaturesCapability.
|
|
||||||
@retval FALSE The CPU feature is not set in PcdCpuFeaturesCapability.
|
|
||||||
|
|
||||||
@note This service could be called by BSP only.
|
|
||||||
**/
|
|
||||||
BOOLEAN
|
|
||||||
EFIAPI
|
|
||||||
IsCpuFeatureCapability (
|
|
||||||
IN UINT32 Feature
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return IsCpuFeatureSetInCpuPcd (
|
|
||||||
(UINT8 *)PcdGetPtr (PcdCpuFeaturesCapability),
|
|
||||||
PcdGetSize (PcdCpuFeaturesCapability),
|
|
||||||
Feature
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Determines if a CPU feature is set in PcdCpuFeaturesUserConfiguration bit mask.
|
|
||||||
|
|
||||||
@param[in] Feature The bit number of the CPU feature to check in the PCD
|
|
||||||
PcdCpuFeaturesUserConfiguration
|
|
||||||
|
|
||||||
@retval TRUE The CPU feature is set in PcdCpuFeaturesUserConfiguration.
|
|
||||||
@retval FALSE The CPU feature is not set in PcdCpuFeaturesUserConfiguration.
|
|
||||||
|
|
||||||
@note This service could be called by BSP only.
|
|
||||||
**/
|
|
||||||
BOOLEAN
|
|
||||||
EFIAPI
|
|
||||||
IsCpuFeatureUserConfiguration (
|
|
||||||
IN UINT32 Feature
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return IsCpuFeatureSetInCpuPcd (
|
|
||||||
(UINT8 *)PcdGetPtr (PcdCpuFeaturesUserConfiguration),
|
|
||||||
PcdGetSize (PcdCpuFeaturesUserConfiguration),
|
|
||||||
Feature
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Switches to assigned BSP after CPU features initialization.
|
Switches to assigned BSP after CPU features initialization.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue