util/smmstoretool: add uint64 data type

It's in particular useful for working with variables that contain 64-bit
pointers, like CapsuleUpdateData* global variables defined by UEFI
specification.

Change-Id: I4b46b41cdc5f69d4ca189659bef1e44f64c0d554
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82611
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Krystian Hebel <krystian.hebel@3mdeb.com>
This commit is contained in:
Sergii Dmytruk
2024-05-22 20:41:02 +03:00
committed by Felix Held
parent dd6c3b4a61
commit d20cc994ba
3 changed files with 41 additions and 13 deletions

View File

@ -122,9 +122,10 @@ static void print_types(FILE *f)
{
fprintf(f, "Types and their values:\n");
fprintf(f, " * bool (true, false)\n");
fprintf(f, " * uint8 (0-255)\n");
fprintf(f, " * uint16 (0-65535)\n");
fprintf(f, " * uint32 (0-4294967295)\n");
fprintf(f, " * uint8 (0..255)\n");
fprintf(f, " * uint16 (0..65535)\n");
fprintf(f, " * uint32 (0..4294967295)\n");
fprintf(f, " * uint64 (0..2^64-1)\n");
fprintf(f, " * ascii (NUL-terminated)\n");
fprintf(f, " * unicode (widened and NUL-terminated)\n");
fprintf(f, " * raw (output only; raw bytes on output)\n");