\r
@param Index The 32-bit value to load into EAX prior to invoking the CPUID\r
instruction.\r
- @param Eax Pointer to the 32-bit EAX value returned by the CPUID\r
+ @param RegisterEax Pointer to the 32-bit EAX value returned by the CPUID\r
instruction. This is an optional parameter that may be NULL.\r
- @param Ebx Pointer to the 32-bit EBX value returned by the CPUID\r
+ @param RegisterEbx Pointer to the 32-bit EBX value returned by the CPUID\r
instruction. This is an optional parameter that may be NULL.\r
- @param Ecx Pointer to the 32-bit ECX value returned by the CPUID\r
+ @param RegisterEcx Pointer to the 32-bit ECX value returned by the CPUID\r
instruction. This is an optional parameter that may be NULL.\r
- @param Edx Pointer to the 32-bit EDX value returned by the CPUID\r
+ @param RegisterEdx Pointer to the 32-bit EDX value returned by the CPUID\r
instruction. This is an optional parameter that may be NULL.\r
\r
@return Index\r
EFIAPI\r
AsmCpuid (\r
IN UINT32 Index,\r
- OUT UINT32 *Eax, OPTIONAL\r
- OUT UINT32 *Ebx, OPTIONAL\r
- OUT UINT32 *Ecx, OPTIONAL\r
- OUT UINT32 *Edx OPTIONAL\r
+ OUT UINT32 *RegisterEax, OPTIONAL\r
+ OUT UINT32 *RegisterEbx, OPTIONAL\r
+ OUT UINT32 *RegisterEcx, OPTIONAL\r
+ OUT UINT32 *RegisterEdx OPTIONAL\r
)\r
{\r
_asm {\r
mov eax, Index\r
cpuid\r
push ecx\r
- mov ecx, Eax\r
+ mov ecx, RegisterEax\r
jecxz SkipEax\r
mov [ecx], eax\r
SkipEax:\r
- mov ecx, Ebx\r
+ mov ecx, RegisterEbx\r
jecxz SkipEbx\r
mov [ecx], ebx\r
SkipEbx:\r
pop eax\r
- mov ecx, Ecx\r
+ mov ecx, RegisterEcx\r
jecxz SkipEcx\r
mov [ecx], eax\r
SkipEcx:\r
- mov ecx, Edx\r
+ mov ecx, RegisterEdx\r
jecxz SkipEdx\r
mov [ecx], edx\r
SkipEdx:\r
CPUID instruction.\r
@param SubIndex The 32-bit value to load into ECX prior to invoking the\r
CPUID instruction.\r
- @param Eax Pointer to the 32-bit EAX value returned by the CPUID\r
+ @param RegisterEax Pointer to the 32-bit EAX value returned by the CPUID\r
instruction. This is an optional parameter that may be\r
NULL.\r
- @param Ebx Pointer to the 32-bit EBX value returned by the CPUID\r
+ @param RegisterEbx Pointer to the 32-bit EBX value returned by the CPUID\r
instruction. This is an optional parameter that may be\r
NULL.\r
- @param Ecx Pointer to the 32-bit ECX value returned by the CPUID\r
+ @param RegisterEcx Pointer to the 32-bit ECX value returned by the CPUID\r
instruction. This is an optional parameter that may be\r
NULL.\r
- @param Edx Pointer to the 32-bit EDX value returned by the CPUID\r
+ @param RegisterEdx Pointer to the 32-bit EDX value returned by the CPUID\r
instruction. This is an optional parameter that may be\r
NULL.\r
\r
AsmCpuidEx (\r
IN UINT32 Index,\r
IN UINT32 SubIndex,\r
- OUT UINT32 *Eax, OPTIONAL\r
- OUT UINT32 *Ebx, OPTIONAL\r
- OUT UINT32 *Ecx, OPTIONAL\r
- OUT UINT32 *Edx OPTIONAL\r
+ OUT UINT32 *RegisterEax, OPTIONAL\r
+ OUT UINT32 *RegisterEbx, OPTIONAL\r
+ OUT UINT32 *RegisterEcx, OPTIONAL\r
+ OUT UINT32 *RegisterEdx OPTIONAL\r
)\r
{\r
_asm {\r
mov ecx, SubIndex\r
cpuid\r
push ecx\r
- mov ecx, Eax\r
+ mov ecx, RegisterEax\r
jecxz SkipEax\r
mov [ecx], eax\r
SkipEax:\r
- mov ecx, Ebx\r
+ mov ecx, RegisterEbx\r
jecxz SkipEbx\r
mov [ecx], ebx\r
SkipEbx:\r
pop eax\r
- mov ecx, Ecx\r
+ mov ecx, RegisterEcx\r
jecxz SkipEcx\r
mov [ecx], eax\r
SkipEcx:\r
- mov ecx, Edx\r
+ mov ecx, RegisterEdx\r
jecxz SkipEdx\r
mov [ecx], edx\r
SkipEdx:\r