summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S')
-rw-r--r--MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S b/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S
index a423102535..cdeff9d73d 100644
--- a/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S
+++ b/MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S
@@ -19,6 +19,7 @@
.p2align 2
GCC_ASM_EXPORT(EnableInterrupts)
+.set DAIF_WR_IRQ_BIT, (1 << 1)
#/**
# Enables CPU interrupts.
@@ -31,5 +32,5 @@ GCC_ASM_EXPORT(EnableInterrupts)
# );
#
ASM_PFX(EnableInterrupts):
- msr daifclr, #2
+ msr daifclr, #DAIF_WR_IRQ_BIT
ret