]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/uwrite.asm
One more header fix
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / uwrite.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_uwrite4
17
18 AREA Uwrite4, CODE, READONLY
19
20 ;
21 ;UINT32
22 ;EFIAPI
23 ;__aeabi_uwrite4 (
24 ; IN UINT32 Data,
25 ; IN VOID *Pointer
26 ; );
27 ;
28 ;
29 __aeabi_uwrite4
30 mov r2, r0, lsr #8
31 strb r0, [r1]
32 strb r2, [r1, #1]
33 mov r2, r0, lsr #16
34 strb r2, [r1, #2]
35 mov r2, r0, lsr #24
36 strb r2, [r1, #3]
37 bx lr
38
39 END
40