3127615b |
1 | //\r |
b1d41be7 |
2 | // Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r |
3127615b |
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 |
81be6e07 |
14 | #include <AsmMacroIoLib.h>\r |
3127615b |
15 | \r |
16 | // IN None\r |
17 | // OUT r0 = SCU Base Address\r |
136df8b8 |
18 | ASM_FUNC(ArmGetScuBaseAddress)\r |
3127615b |
19 | // Read Configuration Base Address Register. ArmCBar cannot be called to get\r |
20 | // the Configuration BAR as a stack is not necessary setup. The SCU is at the\r |
21 | // offset 0x0000 from the Private Memory Region.\r |
22 | mrc p15, 4, r0, c15, c0, 0\r |
23 | bx lr\r |