1 //------------------------------------------------------------------------------
3 // Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
4 // Copyright (c) 2011-2013, ARM Limited. All rights reserved.
6 // SPDX-License-Identifier: BSD-2-Clause-Patent
8 //------------------------------------------------------------------------------
12 INCLUDE AsmMacroExport.inc
15 //------------------------------------------------------------------------------
17 RVCT_ASM_EXPORT ArmIsMpCore
19 // Get Multiprocessing extension (bit31) & U bit (bit30)
20 and R0, R0, #0xC0000000
21 // if (bit31 == 1) && (bit30 == 0) then the processor is part of a multiprocessor system
27 RVCT_ASM_EXPORT ArmEnableAsynchronousAbort
32 RVCT_ASM_EXPORT ArmDisableAsynchronousAbort
37 RVCT_ASM_EXPORT ArmEnableIrq
42 RVCT_ASM_EXPORT ArmDisableIrq
47 RVCT_ASM_EXPORT ArmEnableFiq
52 RVCT_ASM_EXPORT ArmDisableFiq
57 RVCT_ASM_EXPORT ArmEnableInterrupts
62 RVCT_ASM_EXPORT ArmDisableInterrupts
71 RVCT_ASM_EXPORT ReadCCSIDR
72 mcr p15,2,r0,c0,c0,0 ; Write Cache Size Selection Register (CSSELR)
74 mrc p15,1,r0,c0,c0,0 ; Read current CP15 Cache Size ID Register (CCSIDR)
81 RVCT_ASM_EXPORT ReadCLIDR
82 mrc p15,1,r0,c0,c0,1 ; Read CP15 Cache Level ID Register
85 RVCT_ASM_EXPORT ArmReadNsacr
86 mrc p15, 0, r0, c1, c1, 2
89 RVCT_ASM_EXPORT ArmWriteNsacr
90 mcr p15, 0, r0, c1, c1, 2