The crc32 of the system table has to be calculated after all fields have
been set.

Adjust the signature of CalculateCrc32().

Provide a unit test that checks the crc of the system table, the runtime
services table, and the boot sevices table before and after
ExitBootServices().

v2:
        avoid a warning in a debug statement

Heinrich Schuchardt (3):
  efi_loader: correctly initialize system table crc32
  efi_loader: correct signature of CalculateCrc32()
  efi_selftest: unit test for CalculateCrc32()

 cmd/bootefi.c                         |  10 +-
 include/efi_api.h                     |   5 +-
 lib/efi_loader/efi_boottime.c         |   8 +-
 lib/efi_selftest/Makefile             |   1 +
 lib/efi_selftest/efi_selftest_crc32.c | 141 ++++++++++++++++++++++++++
 5 files changed, 154 insertions(+), 11 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

Reply via email to