aboutsummaryrefslogtreecommitdiffstats
path: root/services/std_svc
diff options
context:
space:
mode:
authorRoberto Vargas <roberto.vargas@arm.com>2018-04-26 13:36:53 +0100
committerRoberto Vargas <roberto.vargas@arm.com>2018-06-14 14:41:00 +0100
commit033648652f2d66abe2454a75ded891a47cb13446 (patch)
tree44f1cf0dbdc9601e539393015091c59027de8be3 /services/std_svc
parent74a44dca29be3e780ea50cf7a595883a399e7cfb (diff)
downloadplatform_external_arm-trusted-firmware-033648652f2d66abe2454a75ded891a47cb13446.tar.gz
platform_external_arm-trusted-firmware-033648652f2d66abe2454a75ded891a47cb13446.tar.bz2
platform_external_arm-trusted-firmware-033648652f2d66abe2454a75ded891a47cb13446.zip
Make TF UUID RFC 4122 compliant
RFC4122 defines that fields are stored in network order (big endian), but TF-A stores them in machine order (little endian by default in TF-A). We cannot change the future UUIDs that are already generated, but we can store all the bytes using arrays and modify fiptool to generate the UUIDs with the correct byte order. Change-Id: I97be2d3168d91f4dee7ccfafc533ea55ff33e46f Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
Diffstat (limited to 'services/std_svc')
-rw-r--r--services/std_svc/std_svc_setup.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/services/std_svc/std_svc_setup.c b/services/std_svc/std_svc_setup.c
index 41befe5b2..1a81a0a34 100644
--- a/services/std_svc/std_svc_setup.c
+++ b/services/std_svc/std_svc_setup.c
@@ -19,9 +19,13 @@
#include <uuid.h>
/* Standard Service UUID */
-DEFINE_SVC_UUID(arm_svc_uid,
- 0x108d905b, 0xf863, 0x47e8, 0xae, 0x2d,
- 0xc0, 0xfb, 0x56, 0x41, 0xf6, 0xe2);
+static uuid_t arm_svc_uid = {
+ {0x5b, 0x90, 0x8d, 0x10},
+ {0x63, 0xf8},
+ {0xe8, 0x47},
+ 0xae, 0x2d,
+ {0xc0, 0xfb, 0x56, 0x41, 0xf6, 0xe2}
+};
/* Setup Standard Services */
static int32_t std_svc_setup(void)