]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/uwrite.asm
ARM Packages: Fixed line endings
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / uwrite.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_uwrite4\r
17 EXPORT __aeabi_uwrite8\r
18\r
19 AREA Uwrite4, CODE, READONLY\r
20\r
21;\r
22;UINT32\r
23;EFIAPI\r
24;__aeabi_uwrite4 (\r
25; IN UINT32 Data,\r
26; IN VOID *Pointer\r
27; );\r
28;\r
29;\r
30__aeabi_uwrite4\r
31 mov r2, r0, lsr #8\r
32 strb r0, [r1]\r
33 strb r2, [r1, #1]\r
34 mov r2, r0, lsr #16\r
35 strb r2, [r1, #2]\r
36 mov r2, r0, lsr #24\r
37 strb r2, [r1, #3]\r
38 bx lr\r
39\r
40;\r
41;UINT64\r
42;EFIAPI\r
43;__aeabi_uwrite8 (\r
44; IN UINT64 Data, //r0-r1\r
45; IN VOID *Pointer //r2\r
46; );\r
47;\r
48;\r
49__aeabi_uwrite8\r
50 mov r3, r0, lsr #8\r
51 strb r0, [r2]\r
52 strb r3, [r2, #1]\r
53 mov r3, r0, lsr #16\r
54 strb r3, [r2, #2]\r
55 mov r3, r0, lsr #24\r
56 strb r3, [r2, #3]\r
57\r
58 mov r3, r1, lsr #8\r
59 strb r1, [r2, #4]\r
60 strb r3, [r2, #5]\r
61 mov r3, r1, lsr #16\r
62 strb r3, [r2, #6]\r
63 mov r3, r1, lsr #24\r
64 strb r3, [r2, #7]\r
65 bx lr\r
66\r
67 END\r
68\r