]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S
Omap35xxPkg, BeagleBoardPkg: Use Pcd for INTERRUPT_BASE
[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
RC
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
bebda7ce 7# http://opensource.org/licenses/bsd-license.php\r
8#\r
3402aac7
RC
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
bebda7ce 11#\r
12#\r
13\r
14#include <AsmMacroIoLib.h>\r
15#include <AutoGen.h>\r
16\r
17.text\r
18.align 2\r
19\r
20GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
99267097 21GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)\r
b5a57223 22GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
bebda7ce 23\r
99267097
OM
24GCC_ASM_IMPORT(ArmReadMpidr)\r
25\r
bebda7ce 26//UINTN\r
27//ArmPlatformIsPrimaryCore (\r
28// IN UINTN MpId\r
29// );\r
30ASM_PFX(ArmPlatformIsPrimaryCore):\r
31 // BeagleBoard has a single core. We must always return 1.\r
91c38d4e
RC
32 mov r0, #1\r
33 bx lr\r
bebda7ce 34\r
b5a57223 35ASM_PFX(ArmPlatformPeiBootAction):\r
36 bx lr\r
37\r
99267097
OM
38//UINTN\r
39//ArmPlatformGetPrimaryCoreMpId (\r
40// VOID\r
41// );\r
42ASM_PFX(ArmPlatformGetPrimaryCoreMpId):\r
43 // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is\r
44 // always the MPIDR of the calling CPU.\r
91c38d4e 45 b ASM_PFX(ArmReadMpidr)\r
99267097 46\r
3402aac7 47ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r