]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/CompilerIntrinsicsLib/Arm/llsr.asm
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / llsr.asm
index 829c871d94238b22dd7d3de18970fad9aca0ef91..fce1df28f01cef578098ef5166ac8a72776251d6 100644 (file)
@@ -1,44 +1,39 @@
 //------------------------------------------------------------------------------\r
 //\r
 // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+// Copyright (c) 2018, Pete Batard. 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
+  EXPORT  __aeabi_llsr\r
+  EXPORT  __rt_srsh\r
 \r
-    EXPORT  __aeabi_llsr\r
+  AREA  s___aeabi_llsr, CODE, READONLY, ARM\r
 \r
-    AREA    Math, CODE, READONLY\r
+  ARM\r
 \r
 ;\r
 ;VOID\r
 ;EFIAPI\r
 ;__aeabi_llsr (\r
-; IN  VOID    *Destination,\r
-; IN  VOID    *Source,\r
-; IN  UINT32  Size\r
-; );\r
+;  IN  UINT64  Value,\r
+;  IN  UINT32  Shift\r
+;)\r
 ;\r
 __aeabi_llsr\r
+__rt_srsh\r
     SUBS     r3,r2,#0x20\r
-    BPL      {pc} + 0x18  ; 0x1c\r
+    BPL      __aeabi_llsr_label1\r
     RSB      r3,r2,#0x20\r
     LSR      r0,r0,r2\r
     ORR      r0,r0,r1,LSL r3\r
     LSR      r1,r1,r2\r
     BX       lr\r
+__aeabi_llsr_label1\r
     LSR      r0,r1,r3\r
     MOV      r1,#0\r
     BX       lr\r
 \r
     END\r
-\r
-\r
-\r