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