coreboot/util/amdfwtool
Alexander Goncharov 97cf4a1919 util/amdfwtool/amdfwread: fix offset decision for PSP/BIOS directory lookup
According to AMD documentation, starting from Family 17h Models
00h-0Fh, the PSP on-chip boot loader reads the PSP directory pointer
from offset 0x14 in the Embedded Firmware structure, replacing the
previous offset 0x10.

The docs do not specify any special value indicating a change of
offset. Some AMI binaries use a zero address in this directory field,
which caused incorrect offset handling.

Change-Id: I67ab763d070a9580a8269b525b203c932c5b1b95
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88868
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-09-05 23:58:01 +00:00
..
.gitignore util/amdfwtool: Add amdfwread utility 2022-05-13 15:51:37 +00:00
amdfwread.c util/amdfwtool/amdfwread: fix offset decision for PSP/BIOS directory lookup 2025-09-05 23:58:01 +00:00
amdfwtool.c util/amdfwtool: Fix NULL pointer dereference in fill_dir_header 2025-08-02 01:46:47 +00:00
amdfwtool.h util/amdfwtool: Add binary parsing 2025-07-17 20:38:52 +00:00
data_parse.c util/amdfwtool: Add binary parsing 2025-07-17 20:38:52 +00:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
handle_file.c amdfwtool: Move the functions to handle_file.c 2024-03-04 14:50:53 +00:00
Makefile amdfwtool: Use Makefile.mk for Makefile settings 2024-02-29 02:24:09 +00:00
Makefile.mk amdfwtool: Move code related to getting options to a new file 2024-03-06 11:05:07 +00:00
opts.c util/amdfwtool: Do not attempt to continue processing --help 2025-06-04 17:33:46 +00:00
signed_psp.c util/amdfwtool: add PLATFORM_FAEGAN 2025-04-02 16:02:47 +00:00