]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/CpuIdEx.c
4 Copyright (c) 2006 - 2008, Intel Corporation<BR>
5 All rights reserved. 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 using an extended leaf identifier.
18 Executes the CPUID instruction with EAX set to the value specified by Index
19 and ECX set to the value specified by SubIndex. This function always returns
20 Index. This function is only available on IA-32 and x64.
22 If Eax is not NULL, then the value of EAX after CPUID is returned in Eax.
23 If Ebx is not NULL, then the value of EBX after CPUID is returned in Ebx.
24 If Ecx is not NULL, then the value of ECX after CPUID is returned in Ecx.
25 If Edx is not NULL, then the value of EDX after CPUID is returned in Edx.
27 @param Index The 32-bit value to load into EAX prior to invoking the
29 @param SubIndex The 32-bit value to load into ECX prior to invoking the
31 @param RegisterEax Pointer to the 32-bit EAX value returned by the CPUID
32 instruction. This is an optional parameter that may be
34 @param RegisterEbx Pointer to the 32-bit EBX value returned by the CPUID
35 instruction. This is an optional parameter that may be
37 @param RegisterEcx Pointer to the 32-bit ECX value returned by the CPUID
38 instruction. This is an optional parameter that may be
40 @param RegisterEdx Pointer to the 32-bit EDX value returned by the CPUID
41 instruction. This is an optional parameter that may be
52 OUT UINT32
*RegisterEax
, OPTIONAL
53 OUT UINT32
*RegisterEbx
, OPTIONAL
54 OUT UINT32
*RegisterEcx
, OPTIONAL
55 OUT UINT32
*RegisterEdx OPTIONAL