]>
Commit | Line | Data |
---|---|---|
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 <Base.h>\r | |
16 | \r | |
17 | #include <AutoGen.h>\r | |
18 | \r | |
19 | INCLUDE AsmMacroIoLib.inc\r | |
20 | \r | |
21 | EXPORT ArmPlatformPeiBootAction\r | |
22 | EXPORT ArmPlatformIsPrimaryCore\r | |
23 | EXPORT ArmPlatformGetPrimaryCoreMpId\r | |
24 | \r | |
25 | IMPORT ArmReadMpidr\r | |
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 | |
35 | mov r0, #1\r | |
36 | bx lr\r | |
37 | ENDFUNC\r | |
38 | \r | |
39 | ArmPlatformPeiBootAction FUNCTION\r | |
40 | bx lr\r | |
41 | ENDFUNC\r | |
42 | \r | |
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 | |
50 | b ArmReadMpidr\r | |
51 | ENDFUNC\r | |
52 | \r | |
53 | END\r |