]> 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 879dd76ba2e920e7c813da4ed14ff6294923f79b..504b397f1f68ee9c8f01d17170613a14ea58ed98 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2008, 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
@@ -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