summaryrefslogtreecommitdiff
path: root/include/tools_share/uuid.h
diff options
context:
space:
mode:
authorDavid Horstmann <david.horstmann@arm.com>2021-04-08 14:50:21 +0100
committerDavid Horstmann <david.horstmann@arm.com>2021-04-28 12:13:58 +0100
commit7d111d99c63f318bec742663884dbe6c46789dca (patch)
tree46a6abaec6dc3d9745b435fbaa622884deb37cae /include/tools_share/uuid.h
parentd13dbb6f1d5e28737a3319af035a6cb991bc6f8f (diff)
downloadarm-trusted-firmware-7d111d99c63f318bec742663884dbe6c46789dca.tar.gz
refactor(plat/arm): store UUID as a string, rather than ints
NOTE: Breaking change to the way UUIDs are stored in the DT Currently, UUIDs are stored in the device tree as sequences of 4 integers. There is a mismatch in endianness between the way UUIDs are represented in memory and the way they are parsed from the device tree. As a result, we must either store the UUIDs in little-endian format in the DT (which means that they do not match up with their string representations) or perform endianness conversion after parsing them. Currently, TF-A chooses the second option, with unwieldy endianness-conversion taking place after reading a UUID. To fix this problem, and to make it convenient to copy and paste UUIDs from other tools, change to store UUIDs in string format, using a new wrapper function to parse them from the device tree. Change-Id: I38bd63c907be14e412f03ef0aab9dcabfba0eaa0 Signed-off-by: David Horstmann <david.horstmann@arm.com>
Diffstat (limited to 'include/tools_share/uuid.h')
-rw-r--r--include/tools_share/uuid.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/tools_share/uuid.h b/include/tools_share/uuid.h
index a6891d1c0..2ced3a3fa 100644
--- a/include/tools_share/uuid.h
+++ b/include/tools_share/uuid.h
@@ -66,7 +66,6 @@ struct efi_guid {
union uuid_helper_t {
struct uuid uuid_struct;
struct efi_guid efi_guid;
- uint32_t word[4];
};
/* XXX namespace pollution? */