]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S
BeagleBoardPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.S
CommitLineData
bebda7ce 1#\r
b5a57223 2# Copyright (c) 2012-2013, ARM Limited. All rights reserved.\r
3402aac7 3#\r
a1594be9 4# SPDX-License-Identifier: BSD-2-Clause-Patent\r
bebda7ce 5#\r
6#\r
7\r
8#include <AsmMacroIoLib.h>\r
9#include <AutoGen.h>\r
10\r
11.text\r
12.align 2\r
13\r
14GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
99267097 15GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)\r
b5a57223 16GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
bebda7ce 17\r
99267097
OM
18GCC_ASM_IMPORT(ArmReadMpidr)\r
19\r
bebda7ce 20//UINTN\r
21//ArmPlatformIsPrimaryCore (\r
22// IN UINTN MpId\r
23// );\r
24ASM_PFX(ArmPlatformIsPrimaryCore):\r
25 // BeagleBoard has a single core. We must always return 1.\r
91c38d4e
RC
26 mov r0, #1\r
27 bx lr\r
bebda7ce 28\r
b5a57223 29ASM_PFX(ArmPlatformPeiBootAction):\r
30 bx lr\r
31\r
99267097
OM
32//UINTN\r
33//ArmPlatformGetPrimaryCoreMpId (\r
34// VOID\r
35// );\r
36ASM_PFX(ArmPlatformGetPrimaryCoreMpId):\r
37 // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is\r
38 // always the MPIDR of the calling CPU.\r
91c38d4e 39 b ASM_PFX(ArmReadMpidr)\r
99267097 40\r
3402aac7 41ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r