SPM: Fix boundary switching for FLIH interrupt
p_ildi->flih_func() should be called if there is no need to switch
boundary between SPM and IRQ handler partition.
Signed-off-by: Roman Mazurak <roman.mazurak@infineon.com>
Change-Id: Ic7d4469c8136d8b5e205334395d8f93bc05214a6
diff --git a/secure_fw/spm/ffm/interrupt.c b/secure_fw/spm/ffm/interrupt.c
index c80c7b8..72e7383 100644
--- a/secure_fw/spm/ffm/interrupt.c
+++ b/secure_fw/spm/ffm/interrupt.c
@@ -161,7 +161,7 @@
#if TFM_LVL == 1
flih_result = p_ildi->flih_func();
#else
- if (tfm_hal_boundary_need_switch(spm_boundary,
+ if (!tfm_hal_boundary_need_switch(spm_boundary,
p_part->boundary)) {
flih_result = p_ildi->flih_func();
} else {