nb/intel/gm45/gm45.h: Guard `CxDRC1_NOTPOP` macro parameters
Wrap `r` in parentheses to avoid unexpected behavior with compound expressions. Fortunately, all uses of this macro do not cause issues. Tested with BUILD_TIMELESS=1, Roda RK9 remains identical. Change-Id: Id0f05a507c5e7e8c50e9765261d86bae73c7b5a6 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51879 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
a5146f3239
commit
677ac69868
|
@ -294,7 +294,7 @@ enum {
|
||||||
#define CxDRC1_SSDS_MASK (0xff << CxDRC1_SSDS_SHIFT)
|
#define CxDRC1_SSDS_MASK (0xff << CxDRC1_SSDS_SHIFT)
|
||||||
#define CxDRC1_DS (0x91 << CxDRC1_SSDS_SHIFT)
|
#define CxDRC1_DS (0x91 << CxDRC1_SSDS_SHIFT)
|
||||||
#define CxDRC1_SS (0xb1 << CxDRC1_SSDS_SHIFT)
|
#define CxDRC1_SS (0xb1 << CxDRC1_SSDS_SHIFT)
|
||||||
#define CxDRC1_NOTPOP(r) (1 << (16 + r)) /* Write 1 for Not Populated */
|
#define CxDRC1_NOTPOP(r) (1 << (16 + (r))) /* Write 1 for Not Populated */
|
||||||
#define CxDRC1_NOTPOP_MASK (0xf << 16)
|
#define CxDRC1_NOTPOP_MASK (0xf << 16)
|
||||||
#define CxDRC1_MUSTWR (3 << 11)
|
#define CxDRC1_MUSTWR (3 << 11)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue