coreboot-kgpe-d16/util/amdfwtool
Felix Held 3dfb485334 util/amdfwtool/data_parse: fix PMU subprogram/instance ID handling
The parsing of the PMU binary subprogram and instance numbers only
worked correctly for the cases where the ID in the name in the fw.cfg
file was between 0 and 9, but returned wrong results if it was between a
and f. Switch to using strtol with a base of 16 instead of subtracting
the char '0' from the char in the filename in
find_register_fw_filename_bios_dir to fix this.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ic5fd41daf9f26d11c1f86375387c1d7beac04124
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67927
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2022-09-30 18:03:50 +00:00
..
.gitignore util/amdfwtool: Add amdfwread utility 2022-05-13 15:51:37 +00:00
Makefile util/amdfwtool: Add amdfwread utility 2022-05-13 15:51:37 +00:00
Makefile.inc amdfwtool: Add ISH header support for A/B recovery layout 2022-03-27 15:24:15 +00:00
amdfwread.c util/amdfwtool/amdfwread: Fix incorrect option index 2022-09-04 17:06:21 +00:00
amdfwtool.c util/amdfwtool: Add support for PSP NVRAM base addr and size 2022-09-22 17:10:46 +00:00
amdfwtool.h util/amdfwtool: Add support for PSP NVRAM base addr and size 2022-09-22 17:10:46 +00:00
data_parse.c util/amdfwtool/data_parse: fix PMU subprogram/instance ID handling 2022-09-30 18:03:50 +00:00
description.md