From 3856d0fa907c7b9c7e4ddc555d68843ca7978827 Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Fri, 4 Oct 2024 22:38:22 +0800 Subject: [PATCH] amdfwtool: Set address mode of BIOS binary as context defines Other types of FWs in the BIOS table are defined by context. So the BIOS binary should follow that. TEST=Binary identical test on platforms before mendocino Tested on Skyrim Change-Id: I9c2f2983d03c913b28fbd87aa0925a32a4649d62 Signed-off-by: Zheng Bao Reviewed-on: https://review.coreboot.org/c/coreboot/+/85466 Reviewed-by: Maximilian Brune Tested-by: build bot (Jenkins) --- util/amdfwtool/amdfwtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index b59c10f21a..c2a83ea637 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -1453,9 +1453,9 @@ static void integrate_bios_firmwares(context *ctx, } biosdir->entries[count].source = - RUN_CURRENT_MODE(*ctx, AMD_ADDR_REL_BIOS); + RUN_CURRENT(*ctx); biosdir->entries[count].address_mode = - SET_ADDR_MODE(biosdir, AMD_ADDR_REL_BIOS); + SET_ADDR_MODE_BY_TABLE(biosdir); adjust_current_pointer(ctx, bytes, 0x100U); break;