]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/CpuIdEx.c
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 Retrieves CPUID information using an extended leaf identifier.
12 Executes the CPUID instruction with EAX set to the value specified by Index
13 and ECX set to the value specified by SubIndex. This function always returns
14 Index. This function is only available on IA-32 and x64.
16 If Eax is not NULL, then the value of EAX after CPUID is returned in Eax.
17 If Ebx is not NULL, then the value of EBX after CPUID is returned in Ebx.
18 If Ecx is not NULL, then the value of ECX after CPUID is returned in Ecx.
19 If Edx is not NULL, then the value of EDX after CPUID is returned in Edx.
21 @param Index The 32-bit value to load into EAX prior to invoking the
23 @param SubIndex The 32-bit value to load into ECX prior to invoking the
25 @param RegisterEax A pointer to the 32-bit EAX value returned by the CPUID
26 instruction. This is an optional parameter that may be
28 @param RegisterEbx A pointer to the 32-bit EBX value returned by the CPUID
29 instruction. This is an optional parameter that may be
31 @param RegisterEcx A pointer to the 32-bit ECX value returned by the CPUID
32 instruction. This is an optional parameter that may be
34 @param RegisterEdx A pointer to the 32-bit EDX value returned by the CPUID
35 instruction. This is an optional parameter that may be
46 OUT UINT32
*RegisterEax
, OPTIONAL
47 OUT UINT32
*RegisterEbx
, OPTIONAL
48 OUT UINT32
*RegisterEcx
, OPTIONAL
49 OUT UINT32
*RegisterEdx OPTIONAL