]>
Commit | Line | Data |
---|---|---|
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_memcpy4\r | |
17 | \r | |
18 | AREA Memcpy4, CODE, READONLY\r | |
19 | \r | |
20 | ;\r | |
21 | ;VOID\r | |
22 | ;EFIAPI\r | |
23 | ;__aeabi_memcpy (\r | |
24 | ; IN VOID *Destination,\r | |
25 | ; IN VOID *Source,\r | |
26 | ; IN UINT32 Size\r | |
27 | ; );\r | |
28 | ;\r | |
29 | __aeabi_memcpy4\r | |
30 | stmdb sp!, {r4, lr}\r | |
31 | subs r2, r2, #32 ; 0x20\r | |
32 | bcc memcpy4_label2\r | |
33 | memcpy4_label1\r | |
34 | ldmcsia r1!, {r3, r4, ip, lr}\r | |
35 | stmcsia r0!, {r3, r4, ip, lr}\r | |
36 | ldmcsia r1!, {r3, r4, ip, lr}\r | |
37 | stmcsia r0!, {r3, r4, ip, lr}\r | |
38 | subcss r2, r2, #32 ; 0x20\r | |
39 | bcs memcpy4_label1\r | |
40 | memcpy4_label2\r | |
41 | movs ip, r2, lsl #28\r | |
42 | ldmcsia r1!, {r3, r4, ip, lr}\r | |
43 | stmcsia r0!, {r3, r4, ip, lr}\r | |
44 | ldmmiia r1!, {r3, r4}\r | |
45 | stmmiia r0!, {r3, r4}\r | |
46 | ldmia sp!, {r4, lr}\r | |
47 | movs ip, r2, lsl #30\r | |
48 | ldrcs r3, [r1], #4\r | |
49 | strcs r3, [r0], #4\r | |
50 | bxeq lr\r | |
51 | \r | |
52 | _memcpy4_lastbytes_aligned\r | |
53 | movs r2, r2, lsl #31\r | |
54 | ldrcsh r3, [r1], #2\r | |
55 | ldrmib r2, [r1], #1\r | |
56 | strcsh r3, [r0], #2\r | |
57 | strmib r2, [r0], #1\r | |
58 | bx lr\r | |
59 | \r | |
60 | END\r | |
61 | \r |