Core: Remove isolation level 3
Remove functions, process, data which only used in isolation level 3
for library model.
Change-Id: Ia21819d6a6cccb18af316a79658aa3673f2d2420
Signed-off-by: Edison Ai <edison.ai@arm.com>
diff --git a/secure_fw/services/tfm_spm_db.inc.template b/secure_fw/services/tfm_spm_db.inc.template
index aecae88..f0528cd 100644
--- a/secure_fw/services/tfm_spm_db.inc.template
+++ b/secure_fw/services/tfm_spm_db.inc.template
@@ -139,12 +139,7 @@
.caller_partition_idx = SPM_INVALID_PARTITION_IDX,
.caller_client_id = TFM_INVALID_CLIENT_ID,
.share = TFM_BUFFER_SHARE_DISABLE,
-#if TFM_LVL != 1
- .stack_ptr = PART_REGION_ADDR({{manifest.manifest.name}}, _STACK$$ZI$$Limit) -
- sizeof(struct iovec_args_t),
-#else /* TFM_LVL != 1 */
.stack_ptr = 0,
-#endif /* TFM_LVL != 1 */
.lr = 0,
.iovec_api = TFM_SFN_API_IOVEC,
.iovec_args =
@@ -192,7 +187,7 @@
.platform_data = NULL,
{% endif %}
-#if (TFM_LVL != 1) || defined(TFM_PSA_API)
+#ifdef TFM_PSA_API
/* memory_data */
.memory_data = {{'{'}}
.code_start = PART_REGION_ADDR({{manifest.manifest.name}}, $$Base),
@@ -206,9 +201,7 @@
.stack_bottom = PART_REGION_ADDR({{manifest.manifest.name}}, _STACK$$ZI$$Base),
.stack_top = PART_REGION_ADDR({{manifest.manifest.name}}, _STACK$$ZI$$Limit),
{{'},'}}
-#endif
-#ifdef TFM_PSA_API
/* sp_thrd */
.sp_thrd = {
.pfn = NULL,