]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Drivers/ArmCpuLib/ArmCortexA5xLib/AArch64/ArmCortexA5xHelper.S
ba3d48f11f6ddf95c8fd17fdecf618c9ad6e024c
[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 ASM_FUNC(ArmReadCpuExCr)
18 mrs x0, S3_1_c15_c2_1
19 ret
20
21 ASM_FUNC(ArmWriteCpuExCr)
22 msr S3_1_c15_c2_1, x0
23 dsb sy
24 isb
25 ret
26
27 ASM_FUNCTION_REMOVE_IF_UNREFERENCED