]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Arm/DisableInterrupts.S
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / DisableInterrupts.S
1 #------------------------------------------------------------------------------
2 #
3 # DisableInterrupts() for ARM
4 #
5 # Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
6 # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 #
9 #------------------------------------------------------------------------------
10
11 .text
12 .p2align 2
13 GCC_ASM_EXPORT(DisableInterrupts)
14
15 #/**
16 # Disables CPU interrupts.
17 #
18 #**/
19 #VOID
20 #EFIAPI
21 #DisableInterrupts (
22 # VOID
23 # );
24 #
25 ASM_PFX(DisableInterrupts):
26 mrs R0,CPSR
27 orr R0,R0,#0x80 @Disable IRQ interrupts
28 msr CPSR_c,R0
29 bx LR