]>
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 | ||
17 | EXPORT __aeabi_uread4 | |
18 | ||
19 | AREA Uread4, CODE, READONLY | |
20 | ||
21 | ; | |
22 | ;UINT32 | |
23 | ;EFIAPI | |
24 | ;__aeabi_uread4 ( | |
25 | ; IN VOID *Pointer | |
26 | ; ); | |
27 | ; | |
28 | __aeabi_uread4 | |
29 | ldrb r2, [r0, #1] | |
30 | ldrb r1, [r0] | |
31 | ldrb r3, [r0, #2] | |
32 | ldrb r0, [r0, #3] | |
33 | orr r1, r1, r2, lsl #8 | |
34 | orr r1, r1, r3, lsl #16 | |
35 | orr r0, r1, r0, lsl #24 | |
36 | bx lr | |
37 | ||
38 | END |