]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Arm/DisableInterrupts.asm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / DisableInterrupts.asm
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 EXPORT DisableInterrupts
12
13 AREA Interrupt_disable, CODE, READONLY
14
15 ;/**
16 ; Disables CPU interrupts.
17 ;
18 ;**/
19 ;VOID
20 ;EFIAPI
21 ;DisableInterrupts (
22 ; VOID
23 ; );
24 ;
25 DisableInterrupts
26 MRS R0,CPSR
27 ORR R0,R0,#0x80 ;Disable IRQ interrupts
28 MSR CPSR_c,R0
29 BX LR
30
31 END