Skip to content
Commit 5458faf8 authored by Eugene Cohen's avatar Eugene Cohen Committed by Ard Biesheuvel
Browse files

MdePkg: BaseLib: fix AArch64 DAIF interrupt mask definitions



The AArch64 DAIF bits are different for reading (mrs) versus writing (msr).
The bitmask definitions assumed they were the same causing incorrect
results when trying to determine the current interrupt state through
GetInterruptState.

The logic for interpreting the DAIF read data using the csel instruction
was also incorrect and is fixed.

Replaced the magic numbers in DisableInterrupts.S and EnableInterrupts.S
with definitions for the DAIF write (daifset/daifclr) IRQ field.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: default avatarEugene Cohen <eugene@hp.com>
Reviewed-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
parent e3aa7252
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment