]> git.proxmox.com Git - mirror_edk2.git/blob - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm
884f567cef534ccc0eb33ab540762c32a9a91414
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.asm
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 <Base.h>
10
11 #include <AutoGen.h>
12
13 INCLUDE AsmMacroIoLib.inc
14
15 EXPORT ArmPlatformPeiBootAction
16 EXPORT ArmPlatformIsPrimaryCore
17 EXPORT ArmPlatformGetPrimaryCoreMpId
18
19 IMPORT ArmReadMpidr
20
21 AREA BeagleBoardHelper, CODE, READONLY
22
23 //UINTN
24 //ArmPlatformIsPrimaryCore (
25 // IN UINTN MpId
26 // );
27 ArmPlatformIsPrimaryCore FUNCTION
28 // BeagleBoard has a single core. We must always return 1.
29 mov r0, #1
30 bx lr
31 ENDFUNC
32
33 ArmPlatformPeiBootAction FUNCTION
34 bx lr
35 ENDFUNC
36
37 //UINTN
38 //ArmPlatformGetPrimaryCoreMpId (
39 // VOID
40 // );
41 ArmPlatformGetPrimaryCoreMpId FUNCTION
42 // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is
43 // always the MPIDR of the calling CPU.
44 b ArmReadMpidr
45 ENDFUNC
46
47 END