]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix CpuIdEx.asm to return correct ECX/EDX value.
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 17 Feb 2013 06:35:08 +0000 (06:35 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 17 Feb 2013 06:35:08 +0000 (06:35 +0000)
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14134 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/Ia32/CpuIdEx.asm

index 4e54d0c360abd839752b7bbef23b1688429fe629..504b397f1f68ee9c8f01d17170613a14ea58ed98 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
 ; This program and the accompanying materials\r
 ; are licensed and made available under the terms and conditions of the BSD License\r
 ; which accompanies this distribution.  The full text of the license may be found at\r
@@ -56,7 +56,7 @@ AsmCpuidEx  PROC    USES    ebx
     jecxz   @F\r
     mov     [ecx], edx\r
 @@:\r
-    mov     edx, [ebp + 28]\r
+    mov     ecx, [ebp + 28]\r
     jecxz   @F\r
     pop     [ecx]\r
 @@:\r