]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Drivers/CpuDxe/CpuDxe.c
ArmPkg: CpuDxe: don't track interrupt state in a global variable
authorCohen, Eugene <eugene@hp.com>
Mon, 22 Feb 2016 23:08:27 +0000 (23:08 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 23 Feb 2016 11:07:11 +0000 (12:07 +0100)
commite3aa7252ba58aefc0c8780dd20f169bcdbc9a3d3
treeb1f7c8ba68634e8a38666b33d29bf030fca34abe
parent4af3dd80abb759f3c439f8d1369a57745db08d30
ArmPkg: CpuDxe: don't track interrupt state in a global variable

Update the CpuDxe driver to remove an assumption that it is the only
component modifying interrupt state since this can be done through BaseLib
as well. Instead of using a global variable for last interrupt state we
now check the current PSTATE value directly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmPkg/Drivers/CpuDxe/CpuDxe.c