]>
Commit | Line | Data |
---|---|---|
bebda7ce | 1 | //\r |
b5a57223 | 2 | // Copyright (c) 2012-2013, ARM Limited. All rights reserved.\r |
bebda7ce | 3 | //\r |
a1594be9 | 4 | // SPDX-License-Identifier: BSD-2-Clause-Patent\r |
bebda7ce | 5 | //\r |
6 | //\r | |
7 | \r | |
8 | #include <AsmMacroIoLib.h>\r | |
9 | #include <Base.h>\r | |
10 | \r | |
11 | #include <AutoGen.h>\r | |
12 | \r | |
13 | INCLUDE AsmMacroIoLib.inc\r | |
14 | \r | |
b5a57223 | 15 | EXPORT ArmPlatformPeiBootAction\r |
bebda7ce | 16 | EXPORT ArmPlatformIsPrimaryCore\r |
99267097 OM |
17 | EXPORT ArmPlatformGetPrimaryCoreMpId\r |
18 | \r | |
91c38d4e | 19 | IMPORT ArmReadMpidr\r |
bebda7ce | 20 | \r |
21 | AREA BeagleBoardHelper, CODE, READONLY\r | |
22 | \r | |
23 | //UINTN\r | |
24 | //ArmPlatformIsPrimaryCore (\r | |
25 | // IN UINTN MpId\r | |
26 | // );\r | |
27 | ArmPlatformIsPrimaryCore FUNCTION\r | |
28 | // BeagleBoard has a single core. We must always return 1.\r | |
91c38d4e RC |
29 | mov r0, #1\r |
30 | bx lr\r | |
bebda7ce | 31 | ENDFUNC\r |
32 | \r | |
b5a57223 | 33 | ArmPlatformPeiBootAction FUNCTION\r |
34 | bx lr\r | |
35 | ENDFUNC\r | |
bebda7ce | 36 | \r |
99267097 OM |
37 | //UINTN\r |
38 | //ArmPlatformGetPrimaryCoreMpId (\r | |
39 | // VOID\r | |
40 | // );\r | |
41 | ArmPlatformGetPrimaryCoreMpId FUNCTION\r | |
42 | // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is\r | |
43 | // always the MPIDR of the calling CPU.\r | |
91c38d4e | 44 | b ArmReadMpidr\r |
99267097 OM |
45 | ENDFUNC\r |
46 | \r | |
b5a57223 | 47 | END\r |