]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Arm/EnableInterrupts.S
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / EnableInterrupts.S
1 #------------------------------------------------------------------------------
2 #
3 # EnableInterrupts() 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(EnableInterrupts)
14
15
16 #/**
17 # Enables CPU interrupts.
18 #
19 #**/
20 #VOID
21 #EFIAPI
22 #EnableInterrupts (
23 # VOID
24 # );
25 #
26 ASM_PFX(EnableInterrupts):
27 mrs R0,CPSR
28 bic R0,R0,#0x80 @Enable IRQ interrupts
29 msr CPSR_c,R0
30 bx LR