]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/Library/ArmPlatformLibNull/Arm/ArmPlatformHelper.asm
EmbeddedPkg: Introduced a separate SerialPortExtLib library
[mirror_edk2.git] / ArmPlatformPkg / Library / ArmPlatformLibNull / Arm / ArmPlatformHelper.asm
CommitLineData
e7072e04 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 INCLUDE AsmMacroIoLib.inc\r
17\r
18 EXPORT ArmPlatformGetCorePosition\r
19\r
20 PRESERVE8\r
21 AREA ArmPlatformNullHelper, CODE, READONLY\r
22\r
23//UINTN\r
24//ArmPlatformGetCorePosition (\r
25// IN UINTN MpId\r
26// );\r
27ArmPlatformGetCorePosition FUNCTION\r
28 and r1, r0, #ARM_CORE_MASK\r
29 and r0, r0, #ARM_CLUSTER_MASK\r
30 add r0, r1, r0, LSR #7\r
31 bx lr\r
32 ENDFUNC\r
33\r
34 END\r
35\r