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 <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47977
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Felix Held 2020-11-24 20:51:54 +01:00
parent cd50715e03
commit 3e22cb6e1c
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ void show_psp_transfer_info(void)
struct transfer_info_struct *info = (struct transfer_info_struct *) struct transfer_info_struct *info = (struct transfer_info_struct *)
(void *)(uintptr_t)_transfer_buffer; (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) { if ((info->psp_info & PSP_INFO_VALID) == 0) {
printk(BIOS_INFO, "No PSP info found in transfer buffer.\n"); printk(BIOS_INFO, "No PSP info found in transfer buffer.\n");
return; return;