• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17ASM_FUNC(ArmReadCpuExCr)
18  mrs   x0, S3_1_c15_c2_1
19  ret
20
21ASM_FUNC(ArmWriteCpuExCr)
22  msr   S3_1_c15_c2_1, x0
23  dsb   sy
24  isb
25  ret
26
27ASM_FUNCTION_REMOVE_IF_UNREFERENCED
28