]> 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 cdebec2114354ea758344ba1887aaafb20d29a40..504b397f1f68ee9c8f01d17170613a14ea58ed98 100644 (file)
@@ -1,42 +1,42 @@
-;------------------------------------------------------------------------------
-;
-; Copyright (c) 2006, Intel Corporation
-; All rights reserved. This program and the accompanying materials
-; are licensed and made available under the terms and conditions of the BSD License
-; which accompanies this distribution.  The full text of the license may be found at
-; http://opensource.org/licenses/bsd-license.php
-;
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-;
-; Module Name:
-;
+;------------------------------------------------------------------------------\r
+;\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
+;\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
+;\r
+; Module Name:\r
+;\r
 ;   CpuIdEx.Asm\r
-;
-; Abstract:
-;
+;\r
+; Abstract:\r
+;\r
 ;   AsmCpuidEx function\r
-;
-; Notes:
-;
-;------------------------------------------------------------------------------
-
+;\r
+; Notes:\r
+;\r
+;------------------------------------------------------------------------------\r
+\r
     .686\r
     .model  flat,C\r
-    .code
-
-;------------------------------------------------------------------------------
-;  UINT32
-;  EFIAPI
+    .code\r
+\r
+;------------------------------------------------------------------------------\r
+;  UINT32\r
+;  EFIAPI\r
 ;  AsmCpuidEx (\r
-;    IN   UINT32  RegisterInEax,
-;    IN   UINT32  RegisterInEcx,
-;    OUT  UINT32  *RegisterOutEax  OPTIONAL,
-;    OUT  UINT32  *RegisterOutEbx  OPTIONAL,
-;    OUT  UINT32  *RegisterOutEcx  OPTIONAL,
-;    OUT  UINT32  *RegisterOutEdx  OPTIONAL
-;    )
-;------------------------------------------------------------------------------
+;    IN   UINT32  RegisterInEax,\r
+;    IN   UINT32  RegisterInEcx,\r
+;    OUT  UINT32  *RegisterOutEax  OPTIONAL,\r
+;    OUT  UINT32  *RegisterOutEbx  OPTIONAL,\r
+;    OUT  UINT32  *RegisterOutEcx  OPTIONAL,\r
+;    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
+;    )\r
+;------------------------------------------------------------------------------\r
 AsmCpuidEx  PROC    USES    ebx\r
     push    ebp\r
     mov     ebp, esp\r
@@ -52,17 +52,17 @@ 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
     ret\r
 AsmCpuidEx  ENDP\r
-
-    END
+\r
+    END\r