mainboard/emulation/qemu-i440fx/fw_cfg: fix checksum for ACPI tables
commit4886a6591bf5bc2d3a64f7486101556a29b1320d
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Fri, 20 Apr 2018 12:38:57 +0000 (20 15:38 +0300)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 24 Apr 2018 13:55:50 +0000 (24 13:55 +0000)
treef8c284a464c58568bce3ac511c8ead13eaf5fee1
parent4e8adbc227fff4f849d0149f6ecba1ebf22b7463
mainboard/emulation/qemu-i440fx/fw_cfg: fix checksum for ACPI tables

Current patch fixes problem with validation of ACPI in Linux kernel:
ACPI BIOS Error (bug): A valid RSDP was not found (20180313/tbxfroot-210)
1. function acpi_checksum() returns u8, so seems that is not good idea to
use write_le32().
2. at least RSDP (https://wiki.osdev.org/RSDP#Validating_the_RSDP) has
u8 checksum.

Change-Id: I1fb29ef4e58982aab0c54b1f715c5658d2a663d8
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-on: https://review.coreboot.org/25753
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/mainboard/emulation/qemu-i440fx/fw_cfg.c