The crc32 of the system table has to be recalculated when InstallConfigurationTable() changes the number of tables.
Adjust the signature of CalculateCrc32(). Provide a unit test that checks the crc32 of the system table, the runtime services table, and the boot sevices table before and after ExitBootServices(). Enhance the unit test for InstallConfigurationTable() to check the crc32. Update the crc32 of the runtime services table when detaching. Tested with Tracis CI: https://travis-ci.org/xypron2/u-boot/builds/401158750 v3: Update the crc32 of the runtime services table when detaching. Adjust the signature of CalculateCrc32(). Recalculate crc32 in InstallConfigurationTable() and unit test. v2: avoid a warning in a debug statement *** BLURB HERE *** Heinrich Schuchardt (6): efi_loader: correct signature of CalculateCrc32() efi_loader: update crc32 in InstallConfigurationTable efi_selftest: check crc32 for InstallConfigurationTable efi_selftest: unit test for CalculateCrc32() lib: crc32: mark function crc32() as __efi_runtime efi_loader: update runtime services table crc32 include/efi_api.h | 5 +- include/efi_loader.h | 3 + lib/crc32.c | 14 +- lib/efi_loader/efi_boottime.c | 23 +-- lib/efi_loader/efi_runtime.c | 15 ++ lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_config_table.c | 43 ++++++ lib/efi_selftest/efi_selftest_crc32.c | 141 +++++++++++++++++++ 8 files changed, 222 insertions(+), 23 deletions(-) create mode 100644 lib/efi_selftest/efi_selftest_crc32.c -- 2.18.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot