From 610204a84c02a4a6cc1da628eb22b238f53a9373 Mon Sep 17 00:00:00 2001 From: xli24 Date: Fri, 24 Oct 2008 07:05:21 +0000 Subject: Sync function prototype of CpuId and CpuIdEx with MDE library specification. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6215 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Ia32/CpuIdEx.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'MdePkg/Library/BaseLib/Ia32/CpuIdEx.c') diff --git a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c index 1133397670..e288de2c04 100644 --- a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c +++ b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c @@ -28,16 +28,16 @@ CPUID instruction. @param SubIndex The 32-bit value to load into ECX prior to invoking the CPUID instruction. - @param RegisterEax Pointer to the 32-bit EAX value returned by the CPUID + @param Eax Pointer to the 32-bit EAX value returned by the CPUID instruction. This is an optional parameter that may be NULL. - @param RegisterEbx Pointer to the 32-bit EBX value returned by the CPUID + @param Ebx Pointer to the 32-bit EBX value returned by the CPUID instruction. This is an optional parameter that may be NULL. - @param RegisterEcx Pointer to the 32-bit ECX value returned by the CPUID + @param Ecx Pointer to the 32-bit ECX value returned by the CPUID instruction. This is an optional parameter that may be NULL. - @param RegisterEdx Pointer to the 32-bit EDX value returned by the CPUID + @param Edx Pointer to the 32-bit EDX value returned by the CPUID instruction. This is an optional parameter that may be NULL. @@ -49,10 +49,10 @@ EFIAPI AsmCpuidEx ( IN UINT32 Index, IN UINT32 SubIndex, - OUT UINT32 *RegisterEax, OPTIONAL - OUT UINT32 *RegisterEbx, OPTIONAL - OUT UINT32 *RegisterEcx, OPTIONAL - OUT UINT32 *RegisterEdx OPTIONAL + OUT UINT32 *Eax, OPTIONAL + OUT UINT32 *Ebx, OPTIONAL + OUT UINT32 *Ecx, OPTIONAL + OUT UINT32 *Edx OPTIONAL ) { _asm { @@ -60,20 +60,20 @@ AsmCpuidEx ( mov ecx, SubIndex cpuid push ecx - mov ecx, RegisterEax + mov ecx, Eax jecxz SkipEax mov [ecx], eax SkipEax: - mov ecx, RegisterEbx + mov ecx, Ebx jecxz SkipEbx mov [ecx], ebx SkipEbx: pop eax - mov ecx, RegisterEcx + mov ecx, Ecx jecxz SkipEcx mov [ecx], eax SkipEcx: - mov ecx, RegisterEdx + mov ecx, Edx jecxz SkipEdx mov [ecx], edx SkipEdx: -- cgit v1.2.3