]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/CompilerIntrinsicsLib/Arm/udivmoddi4.S
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / udivmoddi4.S
index 1c0f2eae672266e725ac56ff68c77f22f82d55a3..a74db6fad1935808e3b0b7e921e79fa526345e9f 100644 (file)
@@ -1,22 +1,16 @@
-#------------------------------------------------------------------------------ \r
+#------------------------------------------------------------------------------\r
 #\r
 # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 #\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
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 #------------------------------------------------------------------------------\r
 \r
-  .text\r
-  .align 2\r
-  GCC_ASM_EXPORT(__udivmoddi4)\r
-  \r
-ASM_PFX(__udivmoddi4):\r
+#include <AsmMacroIoLib.h>\r
+\r
+  .syntax unified\r
+\r
+ASM_FUNC(__udivmoddi4)\r
   stmfd  sp!, {r4, r5, r6, r7, lr}\r
   add  r7, sp, #12\r
   stmfd  sp!, {r10, r11}\r
@@ -44,7 +38,7 @@ L8:
 L6:\r
   cmp  r6, #0\r
   movne  r1, #0\r
-  stmneia  r6, {r0-r1}\r
+  stmiane  r6, {r0-r1}\r
   b  L2\r
 L4:\r
   ldr  r1, [sp, #0]\r
@@ -88,7 +82,7 @@ L18:
   cmp  r6, #0\r
   movne  r4, r0\r
   andne  r5, ip, r3\r
-  stmneia  r6, {r4-r5}\r
+  stmiane  r6, {r4-r5}\r
 L24:\r
   rsb  r3, r2, #0\r
   and  r3, r2, r3\r
@@ -123,7 +117,7 @@ L12:
   andne  r3, r3, r0\r
   movne  r2, r3\r
   movne  r3, #0\r
-  stmneia  r6, {r2-r3}\r
+  stmiane  r6, {r2-r3}\r
 L34:\r
   cmp  r1, #1\r
   beq  L10\r
@@ -175,7 +169,7 @@ L30:
   bls  L37\r
 L48:\r
   cmp  r6, #0\r
-  stmneia  r6, {r10-r11}\r
+  stmiane  r6, {r10-r11}\r
   b  L2\r
 L37:\r
   rsb  r1, r3, #31\r
@@ -229,7 +223,7 @@ L40:
   cmp  r6, #0\r
   orr  r10, r0, ip\r
   mov  r11, r1\r
-  stmneia  r6, {r4-r5}\r
+  stmiane  r6, {r4-r5}\r
   b  L10\r
 L2:\r
   mov  r10, #0\r