]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Drivers/ArmCpuLib/ArmCortexA5xLib/AArch64/ArmCortexA5xHelper.S
e5fbc86bc1c42f32671cdb38b22473eff9f47ae5
[mirror_edk2.git] / ArmPkg / Drivers / ArmCpuLib / ArmCortexA5xLib / AArch64 / ArmCortexA5xHelper.S
1 #------------------------------------------------------------------------------
2 #
3 # Copyright (c) 2013 - 2014, ARM Limited. All rights reserved.
4 #
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13 #------------------------------------------------------------------------------
14
15 #include <AsmMacroIoLibV8.h>
16
17 .text
18 .align 3
19 GCC_ASM_EXPORT (ArmReadCpuExCr)
20 GCC_ASM_EXPORT (ArmWriteCpuExCr)
21
22 ASM_PFX(ArmReadCpuExCr):
23 mrs x0, S3_1_c15_c2_1
24 ret
25
26 ASM_PFX(ArmWriteCpuExCr):
27 msr S3_1_c15_c2_1, x0
28 dsb sy
29 isb
30 ret
31
32 ASM_FUNCTION_REMOVE_IF_UNREFERENCED