diff options
author | Mingyang Sun <mingyang.sun@arm.com> | 2021-01-11 11:34:59 +0800 |
---|---|---|
committer | Mingyang Sun <mingyang.sun@arm.com> | 2021-03-19 11:28:19 +0800 |
commit | a1ca6118c9d840a67fbc016e36a346f932bab88b (patch) | |
tree | 5c5e0cf82674d50157f0c783d0bba3d2306c87c3 /interface | |
parent | edb8ee4f9d07e44a011aa7219d6b711448a17e47 (diff) | |
download | trusted-firmware-m-a1ca6118c9d840a67fbc016e36a346f932bab88b.tar.gz |
Tool: Generate static handle for stateless service
Parsing from partition manifest and generate static handle
value for stateless services.
- Validate number of stateless services
- Static handle value auto allocation
- Duplicate detection
Change-Id: I8fdf79f5040caf1cbbdf42e52a4a405b36d88166
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Diffstat (limited to 'interface')
-rw-r--r-- | interface/include/psa_manifest/sid.h.template | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/interface/include/psa_manifest/sid.h.template b/interface/include/psa_manifest/sid.h.template index 5bbacd2c7d..bc478a57ec 100644 --- a/interface/include/psa_manifest/sid.h.template +++ b/interface/include/psa_manifest/sid.h.template @@ -27,6 +27,10 @@ extern "C" { {% else %} #define {{"%-58s"|format(str)}} (1U) {% 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) + {% endif %} {% endfor %} {% endif %} |