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