]>
Commit | Line | Data |
---|---|---|
da351bdb PB |
1 | ;------------------------------------------------------------------------------\r |
2 | ;\r | |
3 | ; EnableInterrupts() 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 EnableInterrupts\r | |
13 | AREA BaseLib_LowLevel, CODE, READONLY\r | |
14 | \r | |
15 | DAIF_WR_IRQ_BIT EQU (1 << 1)\r | |
16 | \r | |
17 | ;/**\r | |
18 | ; Enables CPU interrupts.\r | |
19 | ;\r | |
20 | ;**/\r | |
21 | ;VOID\r | |
22 | ;EFIAPI\r | |
23 | ;EnableInterrupts (\r | |
24 | ; VOID\r | |
25 | ; );\r | |
26 | ;\r | |
27 | EnableInterrupts\r | |
28 | msr daifclr, #DAIF_WR_IRQ_BIT\r | |
29 | ret\r | |
30 | \r | |
31 | END\r |