]>
Commit | Line | Data |
---|---|---|
295c2eb8 | 1 | //\r |
2 | // Copyright (c) 2012, ARM Limited. All rights reserved.\r | |
3 | //\r | |
4 | // This program and the accompanying materials\r | |
5 | // are licensed and made available under the terms and conditions of the BSD License\r | |
6 | // which accompanies this distribution. The full text of the license may be found at\r | |
7 | // http://opensource.org/licenses/bsd-license.php\r | |
8 | //\r | |
9 | // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | //\r | |
12 | //\r | |
13 | \r | |
14 | #include <Library/ArmLib.h>\r | |
15 | \r | |
16 | .text \r | |
17 | .align 3\r | |
18 | \r | |
19 | GCC_ASM_EXPORT(ArmPlatformGetCorePosition)\r | |
20 | \r | |
21 | //UINTN\r | |
22 | //ArmPlatformGetCorePosition (\r | |
23 | // IN UINTN MpId\r | |
24 | // );\r | |
25 | ASM_PFX(ArmPlatformGetCorePosition):\r | |
26 | and r1, r0, #ARM_CORE_MASK\r | |
27 | and r0, r0, #ARM_CLUSTER_MASK\r | |
28 | add r0, r1, r0, LSR #7\r | |
29 | bx lr\r | |
30 | \r |