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