nb/intel/common: Replace `_bar_clrsetbits_impl` macro
commit54c4ecb9f26d5913f92d3568093d9cad37b8aab6
authorAngel Pons <th3fanbus@gmail.com>
Sat, 27 Mar 2021 18:50:14 +0000 (27 19:50 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 3 May 2021 07:38:52 +0000 (3 07:38 +0000)
treeac9dae204e8bd4dea183c33358d7fac456dcc5b0
parent7e112aa7611b3511b9c7a5b2caf33bd9d0f124aa
nb/intel/common: Replace `_bar_clrsetbits_impl` macro

This macro contains a cast on the and-mask, which can suppress actual
type overflow issues. Replace it with wrapper functions around the
existing macros in device/mmio.h which still contain a type cast, but
it is a non-issue because the wrapper functions now allow compilers to
check for overflows.

Change-Id: I975bf8152fc961767f0292bff4a03aecd8c65f56
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51886
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/northbridge/intel/common/fixed_bars.h