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>
\r
#include <Guid/IdleLoopEvent.h>\r
\r
-BOOLEAN mInterruptState = FALSE;\r
-\r
\r
/**\r
This function flushes the range of addresses from Start to Start+Length\r
{\r
ArmEnableInterrupts ();\r
\r
- mInterruptState = TRUE;\r
return EFI_SUCCESS;\r
}\r
\r
{\r
ArmDisableInterrupts ();\r
\r
- mInterruptState = FALSE;\r
return EFI_SUCCESS;\r
}\r
\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- *State = mInterruptState;\r
+ *State = ArmGetInterruptState();\r
return EFI_SUCCESS;\r
}\r
\r