]>
Commit | Line | Data |
---|---|---|
807e2604 HL |
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 |
807e2604 HL |
9 | #\r |
10 | #------------------------------------------------------------------------------\r | |
11 | \r | |
12 | .text\r | |
13 | .p2align 2\r | |
0f895683 | 14 | GCC_ASM_EXPORT(EnableInterrupts)\r |
807e2604 | 15 | \r |
5458faf8 | 16 | .set DAIF_WR_IRQ_BIT, (1 << 1)\r |
807e2604 HL |
17 | \r |
18 | #/**\r | |
19 | # Enables CPU interrupts.\r | |
20 | #\r | |
21 | #**/\r | |
22 | #VOID\r | |
23 | #EFIAPI\r | |
24 | #EnableInterrupts (\r | |
25 | # VOID\r | |
26 | # );\r | |
27 | #\r | |
28 | ASM_PFX(EnableInterrupts):\r | |
5458faf8 | 29 | msr daifclr, #DAIF_WR_IRQ_BIT\r |
807e2604 | 30 | ret\r |