Change expected SP UUID to little-endian
Trusted Services was updated to export little-endian UUID in the SP
manifest (see link below). Change the SP manifest processing to get in
sync with this.
Link: https://review.trustedfirmware.org/c/TS/trusted-services/+/15511
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: Iac0f719b16f046791318822ec64acc1c12e54d67
diff --git a/core/arch/arm/kernel/sp.c b/core/arch/arm/kernel/sp.c
index 8fbbdfe..437bb57 100644
--- a/core/arch/arm/kernel/sp.c
+++ b/core/arch/arm/kernel/sp.c
@@ -173,10 +173,9 @@
return TEE_ERROR_BAD_FORMAT;
}
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < 4; i++)
uuid_array[i] = fdt32_to_cpu(prop[i]);
- uuid_array[i] = TEE_U32_TO_BIG_ENDIAN(uuid_array[i]);
- }
+
tee_uuid_from_octets(uuid, (uint8_t *)uuid_array);
return TEE_SUCCESS;