]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S
ArmPlatformPkg/ArmPlatformLib: Added support for ArmPlatformIsPrimaryCore()
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.S
CommitLineData
bebda7ce 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 <AsmMacroIoLib.h>\r
15#include <AutoGen.h>\r
16\r
17.text\r
18.align 2\r
19\r
20GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
21\r
22//UINTN\r
23//ArmPlatformIsPrimaryCore (\r
24// IN UINTN MpId\r
25// );\r
26ASM_PFX(ArmPlatformIsPrimaryCore):\r
27 // BeagleBoard has a single core. We must always return 1.\r
28 mov r0, #1\r
29 bx lr\r
30\r
31ASM_FUNCTION_REMOVE_IF_UNREFERENCED \r