coreboot/util/amdfwtool
Michał Żygowski 46b03e682c util/amdfwtool: Handle address mode properly for Turin
Trying to read a firmware binary for Turin platform results in
"Invalid address(41400) or mode(0)" error. The utility does not
respect the address mode set by the directory header. The address
mode of th entries is valid only if the address mode of the directory
is equal to 2 or 3.

Check the address mode of the directory and use it for entries only
when its value is less than 2.

TEST=Successfuly parse vendor BIOS for Gigabyte MZ33-AR1.

Change-Id: I479bc846bfb334231fdc707274a8ac44b6c384d4
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89039
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Benjamin Doron <benjamin.doron00@gmail.com>
2025-09-05 23:58:11 +00:00
..
.gitignore util/amdfwtool: Add amdfwread utility 2022-05-13 15:51:37 +00:00
amdfwread.c util/amdfwtool: Handle address mode properly for Turin 2025-09-05 23:58:11 +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: Handle address mode properly for Turin 2025-09-05 23:58:11 +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