]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/CpuId.c
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 Retrieves CPUID information.
18 Executes the CPUID instruction with EAX set to the value specified by Index.
19 This function always returns Index.
20 If Eax is not NULL, then the value of EAX after CPUID is returned in Eax.
21 If Ebx is not NULL, then the value of EBX after CPUID is returned in Ebx.
22 If Ecx is not NULL, then the value of ECX after CPUID is returned in Ecx.
23 If Edx is not NULL, then the value of EDX after CPUID is returned in Edx.
24 This function is only available on IA-32 and x64.
26 @param Index The 32-bit value to load into EAX prior to invoking the CPUID
28 @param RegisterEax A pointer to the 32-bit EAX value returned by the CPUID
29 instruction. This is an optional parameter that may be NULL.
30 @param RegisterEbx A pointer to the 32-bit EBX value returned by the CPUID
31 instruction. This is an optional parameter that may be NULL.
32 @param RegisterEcx A pointer to the 32-bit ECX value returned by the CPUID
33 instruction. This is an optional parameter that may be NULL.
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 NULL.
44 OUT UINT32
*RegisterEax
, OPTIONAL
45 OUT UINT32
*RegisterEbx
, OPTIONAL
46 OUT UINT32
*RegisterEcx
, OPTIONAL
47 OUT UINT32
*RegisterEdx OPTIONAL