From e203aa1d58d754c79381fb73f96d5a6a384d48a2 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 22 Jul 2017 17:51:50 -0600 Subject: [PATCH] src/vendorcode/amd/agesa/f15tn: Fix bitmask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes GCC 7.1 error: error: '<<' in boolean context, did you mean '<' ? Change-Id: I1a28522279982b30d25f1a4a4433a1db767f8a02 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/20699 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Paul Menzel --- src/vendorcode/amd/agesa/f15tn/Proc/Fch/Pcie/GppHp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Pcie/GppHp.c b/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Pcie/GppHp.c index b3d0c8ba53..898ff0c1ba 100644 --- a/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Pcie/GppHp.c +++ b/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Pcie/GppHp.c @@ -85,7 +85,7 @@ FchGppHotPlugSmiProcess ( FailedPort = (UINT8) (1 << HpPort); if (FchGpp->GppGen2 && FchGpp->GppGen2Strap) { - GppS3Data &= (UINT8) !(1 << HpPort); + GppS3Data &= (UINT8) ~(1 << HpPort); if (GppPortPollingLtssm (FchGpp, FailedPort, TRUE, StdHeader)) { FchGppForceGen1 (FchGpp, FailedPort, StdHeader); FailedPort = GppPortPollingLtssm (FchGpp, FailedPort, FALSE, StdHeader); @@ -123,7 +123,7 @@ FchGppHotUnplugSmiProcess ( GppS3Data = 0x00; ReadMem ( ACPI_MMIO_BASE + CMOS_RAM_BASE + 0x0D, AccessWidth8, &GppS3Data); FchGpp->PortCfg[HpPort].PortDetected = FALSE; - GppS3Data &= (UINT8) !(1 << (HpPort + 4)); + GppS3Data &= (UINT8) ~(1 << (HpPort + 4)); if (FchGpp->GppGen2 && FchGpp->GppGen2Strap) { FchGppForceGen2 (FchGpp, (UINT8) (1 << HpPort), StdHeader);