Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/63965 )
Change subject: soc/amd/common/block/psp/psp_gen2: use read32p instead of typecast ......................................................................
soc/amd/common/block/psp/psp_gen2: use read32p instead of typecast
Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: I50b8fc270669f079d4f2ec21aec40388afc1705f Reviewed-on: https://review.coreboot.org/c/coreboot/+/63965 Reviewed-by: Raul Rangel rrangel@chromium.org Reviewed-by: Fred Reitberger reitbergerfred@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/soc/amd/common/block/psp/psp_gen2.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Raul Rangel: Looks good to me, approved Fred Reitberger: Looks good to me, but someone else must approve
diff --git a/src/soc/amd/common/block/psp/psp_gen2.c b/src/soc/amd/common/block/psp/psp_gen2.c index 22e19fa..ddd9a64 100644 --- a/src/soc/amd/common/block/psp/psp_gen2.c +++ b/src/soc/amd/common/block/psp/psp_gen2.c @@ -137,7 +137,7 @@ printk(BIOS_WARNING, "PSP: PSP_ADDR_MSR uninitialized\n"); return CB_ERR; } - *msg_38_value = read32((void *)psp_mmio + CORE_2_PSP_MSG_38_OFFSET); + *msg_38_value = read32p(psp_mmio + CORE_2_PSP_MSG_38_OFFSET); return CB_SUCCESS; }