diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-05-04 16:26:44 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-05-06 19:04:51 +0200 |
commit | 617536e5802a10141271d342611508d139944c69 (patch) | |
tree | 46b5a8e94ab709d935e619088dc6d3426ed93ba6 /src/mainboard | |
parent | 24850ccf9b4597a1269ac3409814219108fadf33 (diff) |
amd/gx2 + amd/lx: Fix shift overflow issue
gcc 6.1 complains that SMM_OFFSET << 8 is larger than the register
it is assigned to (rightly so):
src/northbridge/amd/gx2/northbridgeinit.c:196:23: error: result of
'1077936128 << 8' requires 40 bits to represent, but 'int' only
has 32 bits [-Werror=shift-overflow=]
msr.lo = (SMM_OFFSET << 8) & 0xfff00000;
^~
Change-Id: Ib0d669268202d222574abee335a6a65c8a255cc7
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/14617
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard')
0 files changed, 0 insertions, 0 deletions