summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2014-01-23 12:02:22 +0000
committerLeif Lindholm <leif.lindholm@linaro.org>2014-01-24 15:45:20 +0000
commit2b881853e8b2344370d7883264395fd9152d25fb (patch)
tree7e380c301d10059791541bbede0b8abeb150ef79
parent43d6eb934a95d6f344f26753f2f40e62918e5f42 (diff)
downloaduefi-2b881853e8b2344370d7883264395fd9152d25fb.tar.gz
arm: gic: Disable local interrupts on ExitBootServices()
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--ArmPkg/Drivers/ArmGic/ArmGicDxe.c3
-rw-r--r--ArmPkg/Drivers/ArmGic/ArmGicDxe.inf1
2 files changed, 4 insertions, 0 deletions
diff --git a/ArmPkg/Drivers/ArmGic/ArmGicDxe.c b/ArmPkg/Drivers/ArmGic/ArmGicDxe.c
index 111ce14438..b3085f93e6 100644
--- a/ArmPkg/Drivers/ArmGic/ArmGicDxe.c
+++ b/ArmPkg/Drivers/ArmGic/ArmGicDxe.c
@@ -320,6 +320,9 @@ ExitBootServicesEvent (
// Disable Gic Distributor
MmioWrite32 (PcdGet32(PcdGicDistributorBase) + ARM_GIC_ICDDCR, 0x0);
+
+ // Mask interrupts globally
+ ArmDisableInterrupts ();
}
/**
diff --git a/ArmPkg/Drivers/ArmGic/ArmGicDxe.inf b/ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
index 9dc557a037..7ddecde589 100644
--- a/ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
+++ b/ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
@@ -33,6 +33,7 @@
ArmPkg/ArmPkg.dec
[LibraryClasses]
+ ArmLib
BaseLib
UefiLib
UefiBootServicesTableLib