]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/CpuIdEx.asm
MdePkg/BaseLib: Support IA32 processors without CLFLUSH
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / CpuIdEx.asm
index ecf4c0b941ca42ae3a724f476b1b9171f4a3d329..504b397f1f68ee9c8f01d17170613a14ea58ed98 100644 (file)
@@ -1,10 +1,10 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2008, Intel Corporation\r
-; All rights reserved. This program and the accompanying materials\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
-; http://opensource.org/licenses/bsd-license.php\r
+; http://opensource.org/licenses/bsd-license.php.\r
 ;\r
 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -52,13 +52,13 @@ AsmCpuidEx  PROC    USES    ebx
     jecxz   @F\r
     mov     [ecx], ebx\r
 @@:\r
-    mov     ecx, [ebp + 28]\r
+    mov     ecx, [ebp + 32]\r
     jecxz   @F\r
-    pop     [ecx]\r
+    mov     [ecx], edx\r
 @@:\r
-    mov     edx, [ebp + 32]\r
+    mov     ecx, [ebp + 28]\r
     jecxz   @F\r
-    mov     [ecx], edx\r
+    pop     [ecx]\r
 @@:\r
     mov     eax, [ebp + 12]\r
     leave\r