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

ArmPkg: CpuDxe: fix AArch64 interrupt read masks



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 ArmGetInterruptState.

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

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 2ba36b2f
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