util/amdfwtool: use table-relative addressing in ISH case
When the image slot header (ISH) is used, the addresses in the PSP and BIOS directory tables need to be relative to the beginning of the table. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ia61f7c8313d5a1af95c68b9177a53a2f5443552a Reviewed-on: https://review.coreboot.org/c/coreboot/+/63183 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
parent
1d8c7da5b4
commit
21a8e381ea
|
@ -1798,7 +1798,9 @@ int main(int argc, char **argv)
|
|||
fprintf(stderr, "WARNING: No SOC name specified.\n");
|
||||
}
|
||||
|
||||
if (amd_romsig->efs_gen.gen == EFS_SECOND_GEN)
|
||||
if (cb_config.need_ish)
|
||||
ctx.address_mode = ADDRESS_MODE_2_REL_TAB;
|
||||
else if (amd_romsig->efs_gen.gen == EFS_SECOND_GEN)
|
||||
ctx.address_mode = ADDRESS_MODE_1_REL_BIOS;
|
||||
else
|
||||
ctx.address_mode = ADDRESS_MODE_0_PHY;
|
||||
|
|
Loading…
Reference in New Issue