]>
Commit | Line | Data |
---|---|---|
2ef2b01e A |
1 | //------------------------------------------------------------------------------ |
2 | // | |
d6ebcab7 | 3 | // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> |
2ef2b01e | 4 | // |
d6ebcab7 | 5 | // This program and the accompanying materials |
2ef2b01e A |
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 |