From 3e22cb6e1c72c5d277e760db3fd56de663715083 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 24 Nov 2020 20:51:54 +0100 Subject: soc/amd/common/vboot: use transfer_buffer_valid function show_psp_transfer_info reimplemented the functionality of transfer_buffer_valid, so use replace that with a function call. Change-Id: Ie3d373b10bdb0ab00640dabeea12b13ec25406cc Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/47977 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/common/vboot/vboot_bootblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc') diff --git a/src/soc/amd/common/vboot/vboot_bootblock.c b/src/soc/amd/common/vboot/vboot_bootblock.c index 45ad9de03e..da652eb8bc 100644 --- a/src/soc/amd/common/vboot/vboot_bootblock.c +++ b/src/soc/amd/common/vboot/vboot_bootblock.c @@ -47,7 +47,7 @@ void show_psp_transfer_info(void) struct transfer_info_struct *info = (struct transfer_info_struct *) (void *)(uintptr_t)_transfer_buffer; - if (info->magic_val == TRANSFER_MAGIC_VAL) { + if (transfer_buffer_valid(info)) { if ((info->psp_info & PSP_INFO_VALID) == 0) { printk(BIOS_INFO, "No PSP info found in transfer buffer.\n"); return; -- cgit v1.2.3