]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/memset.asm
ARM Packages: Fixed line endings
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / memset.asm
CommitLineData
1e57a462 1//------------------------------------------------------------------------------\r
2//\r
3// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
4//\r
5// This program and the accompanying materials\r
6// are licensed and made available under the terms and conditions of the BSD License\r
7// which accompanies this distribution. The full text of the license may be found at\r
8// http://opensource.org/licenses/bsd-license.php\r
9//\r
10// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12//\r
13//------------------------------------------------------------------------------\r
14\r
15\r
16 EXPORT __aeabi_memset\r
17 EXPORT __aeabi_memclr\r
18 EXPORT __aeabi_memclr4\r
19\r
20 AREA Memset, CODE, READONLY\r
21\r
22;\r
23;VOID\r
24;EFIAPI\r
25;__aeabi_memset (\r
26; IN VOID *Destination,\r
27; IN UINT32 Character,\r
28; IN UINT32 Size\r
29; );\r
30;\r
31__aeabi_memset\r
32\r
33 ; args = 0, pretend = 0, frame = 0\r
34 ; frame_needed = 1, uses_anonymous_args = 0\r
35 stmfd sp!, {r7, lr}\r
36 mov ip, #0\r
37 add r7, sp, #0\r
38 mov lr, r0\r
39 b L9\r
40L10\r
41 and r3, r1, #255\r
42 add ip, ip, #1\r
43 strb r3, [lr], #1\r
44L9\r
45 cmp ip, r2\r
46 bne L10\r
47 ldmfd sp!, {r7, pc}\r
48\r
49__aeabi_memclr\r
50 mov r2, r1\r
51 mov r1, #0\r
52 b __aeabi_memset\r
53\r
54__aeabi_memclr4\r
55 mov r2, r1\r
56 mov r1, #0\r
57 b __aeabi_memset\r
58\r
59 END\r