summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-11-24 20:51:54 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-11-30 16:29:14 +0000
commit3e22cb6e1c72c5d277e760db3fd56de663715083 (patch)
tree37a47850637305c3fe4acfd5e318937b5a36ba82 /src/soc
parentcd50715e0334fb16006788506e3815e489d337a9 (diff)
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>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/vboot/vboot_bootblock.c2
1 files changed, 1 insertions, 1 deletions
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;