]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/AArch64/DisableInterrupts.asm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / AArch64 / DisableInterrupts.asm
1 ;------------------------------------------------------------------------------
2 ;
3 ; DisableInterrupts() for AArch64
4 ;
5 ; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
6 ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
7 ; Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
8 ; SPDX-License-Identifier: BSD-2-Clause-Patent
9 ;
10 ;------------------------------------------------------------------------------
11
12 EXPORT DisableInterrupts
13 AREA BaseLib_LowLevel, CODE, READONLY
14
15 DAIF_WR_IRQ_BIT EQU (1 << 1)
16
17 ;/**
18 ; Disables CPU interrupts.
19 ;
20 ;**/
21 ;VOID
22 ;EFIAPI
23 ;DisableInterrupts (
24 ; VOID
25 ; );
26 ;
27 DisableInterrupts
28 msr daifset, #DAIF_WR_IRQ_BIT
29 ret
30
31 END