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