mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
UefiCpuPkg/Library: Support to get processor extended info
Intel has some features need to use processor extended information under CPU feature InitializeFunc(), so add code to support it: This patch is to add CPU_V2_EXTENDED_TOPOLOGY to get processor extended info. Cc: Ray Ni <ray.ni@intel.com> Cc: Zeng Star <star.zeng@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
parent
952b5cf94c
commit
5cbfb93abe
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
CPU Register Table Library functions.
|
CPU Register Table Library functions.
|
||||||
|
|
||||||
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2017 - 2024, Intel Corporation. All rights reserved.<BR>
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -101,7 +101,7 @@ GetProcessorInformation (
|
|||||||
|
|
||||||
Status = MpServices->GetProcessorInfo (
|
Status = MpServices->GetProcessorInfo (
|
||||||
MpServices,
|
MpServices,
|
||||||
ProcessorNumber,
|
ProcessorNumber | CPU_V2_EXTENDED_TOPOLOGY,
|
||||||
ProcessorInfoBuffer
|
ProcessorInfoBuffer
|
||||||
);
|
);
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
CPU Register Table Library functions.
|
CPU Register Table Library functions.
|
||||||
|
|
||||||
Copyright (c) 2016 - 2020, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2016 - 2024, Intel Corporation. All rights reserved.<BR>
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -139,7 +139,7 @@ GetProcessorInformation (
|
|||||||
|
|
||||||
Status = CpuMp2Ppi->GetProcessorInfo (
|
Status = CpuMp2Ppi->GetProcessorInfo (
|
||||||
CpuMp2Ppi,
|
CpuMp2Ppi,
|
||||||
ProcessorNumber,
|
ProcessorNumber | CPU_V2_EXTENDED_TOPOLOGY,
|
||||||
ProcessorInfoBuffer
|
ProcessorInfoBuffer
|
||||||
);
|
);
|
||||||
return Status;
|
return Status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user