[PATCH v2 10/11] qfw: fix RSDP ext_checksum recomputation
Simon Glass
sjg at chromium.org
Thu Jun 25 12:47:30 CEST 2026
On 2026-06-21T08:19:04, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
> qfw: fix RSDP ext_checksum recomputation
>
> table_compute_checksum() returns the value that makes the byte sum of
> the buffer zero. If the ext_checksum field already contains a non-zero
> value (as QEMU's firmware-provided RSDP does), adding that existing
> value into the sum produces an incorrect complement. Zero the field
> before calling table_compute_checksum() so the calculation starts from
> a clean state, matching the pattern used in acpi_write_rsdp().
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
>
> drivers/misc/qfw_acpi.c | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list