]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/CpuId.c
Sync function prototype of CpuId and CpuIdEx with MDE library specification.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / CpuId.c
index 9745ae21d4846519d0da577dc8826f3dac78d629..cbd0b9a57bb00db5d3e088df3989d2c007dc9aa1 100644 (file)
 \r
   @param  Index         The 32-bit value to load into EAX prior to invoking the CPUID\r
                         instruction.\r
-  @param  RegisterEax   Pointer to the 32-bit EAX value returned by the CPUID\r
+  @param  Eax           Pointer to the 32-bit EAX value returned by the CPUID\r
                         instruction. This is an optional parameter that may be NULL.\r
-  @param  RegisterEbx   Pointer to the 32-bit EBX value returned by the CPUID\r
+  @param  Ebx           Pointer to the 32-bit EBX value returned by the CPUID\r
                         instruction. This is an optional parameter that may be NULL.\r
-  @param  RegisterEcx   Pointer to the 32-bit ECX value returned by the CPUID\r
+  @param  Ecx           Pointer to the 32-bit ECX value returned by the CPUID\r
                         instruction. This is an optional parameter that may be NULL.\r
-  @param  RegisterEdx   Pointer to the 32-bit EDX value returned by the CPUID\r
+  @param  Edx           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
@@ -41,30 +41,30 @@ UINT32
 EFIAPI\r
 AsmCpuid (\r
   IN      UINT32                    Index,\r
-  OUT     UINT32                    *RegisterEax,  OPTIONAL\r
-  OUT     UINT32                    *RegisterEbx,  OPTIONAL\r
-  OUT     UINT32                    *RegisterEcx,  OPTIONAL\r
-  OUT     UINT32                    *RegisterEdx   OPTIONAL\r
+  OUT     UINT32                    *Eax,  OPTIONAL\r
+  OUT     UINT32                    *Ebx,  OPTIONAL\r
+  OUT     UINT32                    *Ecx,  OPTIONAL\r
+  OUT     UINT32                    *Edx   OPTIONAL\r
   )\r
 {\r
   _asm {\r
     mov     eax, Index\r
     cpuid\r
     push    ecx\r
-    mov     ecx, RegisterEax\r
+    mov     ecx, Eax\r
     jecxz   SkipEax\r
     mov     [ecx], eax\r
 SkipEax:\r
-    mov     ecx, RegisterEbx\r
+    mov     ecx, Ebx\r
     jecxz   SkipEbx\r
     mov     [ecx], ebx\r
 SkipEbx:\r
     pop     eax\r
-    mov     ecx, RegisterEcx\r
+    mov     ecx, Ecx\r
     jecxz   SkipEcx\r
     mov     [ecx], eax\r
 SkipEcx:\r
-    mov     ecx, RegisterEdx\r
+    mov     ecx, Edx\r
     jecxz   SkipEdx\r
     mov     [ecx], edx\r
 SkipEdx:\r