aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorMingyang Sun <mingyang.sun@arm.com>2021-03-17 17:58:33 +0800
committerMingyang Sun <mingyang.sun@arm.com>2021-03-22 15:05:16 +0800
commit453ad40c80eb64c6c9f86ddcf2b513a3ed372291 (patch)
tree4d22d820f17877a3f0a37eb7b7091f029ef66804 /interface
parent062594f65de20bc8c1878cbd530af27030735da8 (diff)
downloadtrusted-firmware-m-453ad40c80eb64c6c9f86ddcf2b513a3ed372291.tar.gz
SPM: Implement version check for stateless service
Encode the service version and stateless indicator into stateless handle, validate the stateless handle indicator, version and index before using. Change-Id: Id5f388f938a758803863958dfbb0c0011c2e1f04 Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Diffstat (limited to 'interface')
-rw-r--r--interface/include/psa_manifest/sid.h.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface/include/psa_manifest/sid.h.template b/interface/include/psa_manifest/sid.h.template
index bc478a57e..e188d62b7 100644
--- a/interface/include/psa_manifest/sid.h.template
+++ b/interface/include/psa_manifest/sid.h.template
@@ -29,7 +29,7 @@ extern "C" {
{% endif %}
{% if partition.manifest.psa_framework_version > 1.0 and service.connection_based == false %}
{% set str = service.name + "_HANDLE" %}
-#define {{"%-58s"|format(str)}} ({{"%d"|format(service.stateless_handle)}}U)
+#define {{"%-58s"|format(str)}} ({{"%s"|format(service.stateless_handle)}}U)
{% endif %}
{% endfor %}
{% endif %}