SPM: Introduce GET_PARTITION_PRIVILEGED_MODE
This patch introduces a GET_PARTITION_PRIVILEGED_MODE to
replace the tfm_spm_partition_get_privileged_mode function.
Change-Id: I7da33f8990695652413899390ffe397c2bef7d7e
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/ffm/interrupt.c b/secure_fw/spm/ffm/interrupt.c
index 920554c..79047cc 100644
--- a/secure_fw/spm/ffm/interrupt.c
+++ b/secure_fw/spm/ffm/interrupt.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -144,7 +144,7 @@
flih_result = PSA_FLIH_SIGNAL;
} else {
/* FLIH Model Handling */
- if (tfm_spm_partition_get_privileged_mode(p_part->p_ldinf->flags) ==
+ if (GET_PARTITION_PRIVILEGED_MODE(p_part->p_ldinf) ==
TFM_PARTITION_PRIVILEGED_MODE) {
flih_result = p_ildi->flih_func();
} else {