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