Hung-Te Lin has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/40404 )
Change subject: mmio: Use unsigned integers for bit operations ......................................................................
mmio: Use unsigned integers for bit operations
When declaring bit fields with 31 bits (e.g: DEFINE_BITFIELD(MYREG, 30, 0) ), the calculation of mask value will go overflow: "error: integer overflow in expression '-2147483648 - 1' of type 'int' results in '2147483647'").
To fix that, the bit field macros should always use unsigned integers.
Change-Id: Ie3cddf9df60b83de4e21243bfde6b79729fb06ef Changr-Id: Ib165700edba6f26fb885fad15c0e483bcb6a63a9 Signed-off-by: Hung-Te Lin hungte@chromium.org --- M src/include/device/mmio.h 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/40404/2