]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Drivers/ArmCpuLib/ArmCortexA9Lib/ArmCortexA9Helper.S
ArmPkg/ArmCpuLib: Replaced complex functions ArmCpuSynchronizeWait & ArmCpuSynchroniz...
[mirror_edk2.git] / ArmPkg / Drivers / ArmCpuLib / ArmCortexA9Lib / ArmCortexA9Helper.S
CommitLineData
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#include <Library/ArmCpuLib.h>\r
16#include <Chipset/ArmCortexA9.h>\r
17\r
18.text\r
19.align 3\r
20\r
3127615b 21GCC_ASM_EXPORT(ArmGetScuBaseAddress)\r
3127615b 22\r
23// IN None\r
24// OUT r0 = SCU Base Address\r
25ASM_PFX(ArmGetScuBaseAddress):\r
26 // Read Configuration Base Address Register. ArmCBar cannot be called to get\r
27 // the Configuration BAR as a stack is not necessary setup. The SCU is at the\r
28 // offset 0x0000 from the Private Memory Region.\r
29 mrc p15, 4, r0, c15, c0, 0\r
30 bx lr\r