From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- .../Library/BaseLib/AArch64/EnableInterrupts.S | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 roms/edk2/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S (limited to 'roms/edk2/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S') diff --git a/roms/edk2/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S b/roms/edk2/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S new file mode 100644 index 000000000..97eeb13fb --- /dev/null +++ b/roms/edk2/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S @@ -0,0 +1,30 @@ +#------------------------------------------------------------------------------ +# +# EnableInterrupts() for AArch64 +# +# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+# Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +#------------------------------------------------------------------------------ + +.text +.p2align 2 +GCC_ASM_EXPORT(EnableInterrupts) + +.set DAIF_WR_IRQ_BIT, (1 << 1) + +#/** +# Enables CPU interrupts. +# +#**/ +#VOID +#EFIAPI +#EnableInterrupts ( +# VOID +# ); +# +ASM_PFX(EnableInterrupts): + msr daifclr, #DAIF_WR_IRQ_BIT + ret -- cgit 1.2.3-korg