mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
UefiCpuPkg/CpuCacheInfoLib: Add MpService dependency
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3190 Add MpService dependency to enforce the executability of CpuCacheInfoLib. Signed-off-by: Jason Lou <yun.lou@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com>
This commit is contained in:
parent
618e6a1f21
commit
51b96e4b4c
@ -59,8 +59,6 @@ typedef struct {
|
|||||||
@retval EFI_INVALID_PARAMETER CpuCacheInfo is NULL while CpuCacheInfoCount contains the value
|
@retval EFI_INVALID_PARAMETER CpuCacheInfo is NULL while CpuCacheInfoCount contains the value
|
||||||
greater than zero.
|
greater than zero.
|
||||||
@retval EFI_UNSUPPORTED Processor does not support CPUID_CACHE_PARAMS Leaf.
|
@retval EFI_UNSUPPORTED Processor does not support CPUID_CACHE_PARAMS Leaf.
|
||||||
@retval EFI_NOT_FOUND EDKII_PEI_MP_SERVICES2_PPI or EFI_MP_SERVICES_PROTOCOL interface
|
|
||||||
is not found.
|
|
||||||
@retval EFI_OUT_OF_RESOURCES Required resources could not be allocated.
|
@retval EFI_OUT_OF_RESOURCES Required resources could not be allocated.
|
||||||
@retval EFI_BUFFER_TOO_SMALL CpuCacheInfoCount is too small to hold the response CpuCacheInfo
|
@retval EFI_BUFFER_TOO_SMALL CpuCacheInfoCount is too small to hold the response CpuCacheInfo
|
||||||
array. CpuCacheInfoCount has been updated with the length needed
|
array. CpuCacheInfoCount has been updated with the length needed
|
||||||
|
@ -346,8 +346,6 @@ CpuCacheInfoCollectCpuCacheInfoData (
|
|||||||
@retval EFI_INVALID_PARAMETER CpuCacheInfo is NULL while CpuCacheInfoCount contains the value
|
@retval EFI_INVALID_PARAMETER CpuCacheInfo is NULL while CpuCacheInfoCount contains the value
|
||||||
greater than zero.
|
greater than zero.
|
||||||
@retval EFI_UNSUPPORTED Processor does not support CPUID_CACHE_PARAMS Leaf.
|
@retval EFI_UNSUPPORTED Processor does not support CPUID_CACHE_PARAMS Leaf.
|
||||||
@retval EFI_NOT_FOUND EDKII_PEI_MP_SERVICES2_PPI or EFI_MP_SERVICES_PROTOCOL interface
|
|
||||||
is not found.
|
|
||||||
@retval EFI_OUT_OF_RESOURCES Required resources could not be allocated.
|
@retval EFI_OUT_OF_RESOURCES Required resources could not be allocated.
|
||||||
@retval EFI_BUFFER_TOO_SMALL CpuCacheInfoCount is too small to hold the response CpuCacheInfo
|
@retval EFI_BUFFER_TOO_SMALL CpuCacheInfoCount is too small to hold the response CpuCacheInfo
|
||||||
array. CpuCacheInfoCount has been updated with the length needed
|
array. CpuCacheInfoCount has been updated with the length needed
|
||||||
@ -384,10 +382,7 @@ GetCpuCacheInfo (
|
|||||||
//
|
//
|
||||||
// Initialize COLLECT_CPUID_CACHE_DATA_CONTEXT.MpServices.
|
// Initialize COLLECT_CPUID_CACHE_DATA_CONTEXT.MpServices.
|
||||||
//
|
//
|
||||||
Status = CpuCacheInfoGetMpServices (&Context.MpServices);
|
CpuCacheInfoGetMpServices (&Context.MpServices);
|
||||||
if (EFI_ERROR(Status)) {
|
|
||||||
return Status;
|
|
||||||
}
|
|
||||||
|
|
||||||
NumberOfProcessors = CpuCacheInfoGetNumberOfProcessors (Context.MpServices);
|
NumberOfProcessors = CpuCacheInfoGetNumberOfProcessors (Context.MpServices);
|
||||||
|
|
||||||
|
@ -40,4 +40,4 @@
|
|||||||
[Pcd]
|
[Pcd]
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
TRUE
|
gEfiMpServiceProtocolGuid
|
||||||
|
@ -40,4 +40,4 @@
|
|||||||
[Pcd]
|
[Pcd]
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
TRUE
|
gEdkiiPeiMpServices2PpiGuid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user