src/vendorcode/amd/agesa/f15tn: Fix bitmask

Fixes GCC 7.1 error:
error: '<<' in boolean context, did you mean '<' ?

Change-Id: I1a28522279982b30d25f1a4a4433a1db767f8a02
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20699
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Martin Roth 2017-07-22 17:51:50 -06:00
parent 3cbd3b0367
commit e203aa1d58
1 changed files with 2 additions and 2 deletions

View File

@ -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);