summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2017-04-13 17:32:19 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2017-04-13 17:32:19 +0100
commit85aae2b87b59d10e9ed7e65ba5bc64a39d3f4e97 (patch)
tree4cf98e39126f7016e728e0e91ed9510217c0020d
parentf2e8243d7823c1734d1f67753d74aeae4476caa7 (diff)
ArmPlatformPkg: Fix ArmJunoDxe gcc49 build errorlinaro-edk2-2017.04-rc1
When inlining hevily, one gcc 4.9 toolchain I've come across incorrectly believes PciRegBase can end up uninitialized. This is not actually correct, but add an unconditional initialization to 0 as well. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
index da93eb5829..1e222666c5 100644
--- a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
+++ b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
@@ -243,6 +243,8 @@ InitPciDev (
UINT64 AttrSupports;
EFI_STATUS Status;
+ *PciRegBase = 0;
+
// Get controller's current attributes
Status = PciIo->Attributes (
PciIo,