]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/memcpy.asm
Updating ArmLib.h to add functions needed to turn on paging in CpuDxe. Also added...
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / memcpy.asm
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2008-2009 Apple Inc. All rights reserved.
4 //
5 // All rights reserved. This program and the accompanying materials
6 // are licensed and made available under the terms and conditions of the BSD License
7 // which accompanies this distribution. The full text of the license may be found at
8 // http://opensource.org/licenses/bsd-license.php
9 //
10 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 //
13 //------------------------------------------------------------------------------
14
15
16 EXPORT __aeabi_memcpy
17
18 AREA Memcpy, CODE, READONLY
19
20 ;
21 ;VOID
22 ;EFIAPI
23 ;__aeabi_memcpy (
24 ; IN VOID *Destination,
25 ; IN VOID *Source,
26 ; IN UINT32 Size
27 ; );
28 ;
29 __aeabi_memcpy
30 CMP r2, #0
31 BXEQ r14
32 loop
33 LDRB r3, [r1], #1
34 STRB r3, [r0], #1
35 SUBS r2, r2, #1
36 BXEQ r14
37 B loop
38
39 END
40