]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Drivers/ArmCpuLib/ArmCortexA9Lib/ArmCortexA9Helper.asm
ArmPkg: update RVCT assembly functions to use new RVCT_ASM_EXPORT macro
[mirror_edk2.git] / ArmPkg / Drivers / ArmCpuLib / ArmCortexA9Lib / ArmCortexA9Helper.asm
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
efda1775 18 INCLUDE AsmMacroExport.inc\r
81be6e07 19 INCLUDE AsmMacroIoLib.inc\r
20\r
3127615b 21\r
22 PRESERVE8\r
3127615b 23\r
3127615b 24// IN None\r
25// OUT r0 = SCU Base Address\r
efda1775 26 RVCT_ASM_EXPORT ArmGetScuBaseAddress\r
3127615b 27 // Read Configuration Base Address Register. ArmCBar cannot be called to get\r
28 // the Configuration BAR as a stack is not necessary setup. The SCU is at the\r
29 // offset 0x0000 from the Private Memory Region.\r
30 mrc p15, 4, r0, c15, c0, 0\r
31 bx lr\r
32\r
3127615b 33 END\r