]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/X64/EfiZeroMemRep4.S
Fixed issues compiling for Apple gcc on IA-32
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EfiCommonLib / X64 / EfiZeroMemRep4.S
index f07c3d55cc5bf0b7142ef8bd7330982aac8688e4..5af4252c2395ccd6ec12e7f98cb87ca3cd0119ba 100644 (file)
@@ -1,46 +1,46 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2008, Intel Corporation\r
-# All rights reserved. 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
-#   EfiZeroMemRep4.S\r
-#\r
-# Abstract:\r
-#\r
-#   ZeroMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-    .code: \r
-\r
-.global ASM_PFX(EfiCommonLibZeroMem)\r
-#------------------------------------------------------------------------------\r
-#  VOID\r
-#  EfiCommonLibZeroMem (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Size\r
-#    );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(EfiCommonLibZeroMem):\r
-      push   %rdi\r
-      xor    %rax,%rax\r
-      mov    %rcx,%rdi\r
-      mov    %rdx,%rcx\r
-      shr    $0x2,%rcx\r
-      and    $0x3,%rdx\r
-      rep stos %eax,%es:(%rdi)\r
-      mov    %rdx,%rcx\r
-      rep stos %al,%es:(%rdi)\r
-      pop    %rdi\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2008, 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:
+#
+#   EfiZeroMemRep4.S
+#
+# Abstract:
+#
+#   ZeroMem function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+#include <EfiBind.h>
+
+    .code: 
+
+.globl ASM_PFX(EfiCommonLibZeroMem)
+#------------------------------------------------------------------------------
+#  VOID
+#  EfiCommonLibZeroMem (
+#    IN VOID   *Buffer,
+#    IN UINTN  Size
+#    );
+#------------------------------------------------------------------------------
+ASM_PFX(EfiCommonLibZeroMem):
+      push   %rdi
+      xor    %rax,%rax
+      mov    %rcx,%rdi
+      mov    %rdx,%rcx
+      shr    $0x2,%rcx
+      and    $0x3,%rdx
+      rep stos %eax,%es:(%rdi)
+      mov    %rdx,%rcx
+      rep stos %al,%es:(%rdi)
+      pop    %rdi
       retq   
\ No newline at end of file