]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.S
... / ...
CommitLineData
1#\r
2# Copyright (c) 2012-2013, 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
21GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)\r
22GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
23\r
24GCC_ASM_IMPORT(ArmReadMpidr)\r
25\r
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
32 mov r0, #1\r
33 bx lr\r
34\r
35ASM_PFX(ArmPlatformPeiBootAction):\r
36 bx lr\r
37\r
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
45 b ASM_PFX(ArmReadMpidr)\r
46\r
47ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r