From 3b4a78571524a77358c4fd363131e33662fcb8ed Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Thu, 21 Dec 2023 09:20:52 +0100 Subject: [PATCH] core: arm: kernel_spmc: correct CFG_SECURE_PARTITION test Replace occurrences of #if CFG_SECURE_PARTITION to a #ifdef test as boolean CFG_ configuration switches do not have a meaningful value. Fixes: 4d0288475267 ("core: spmc: handle non-secure interrupts") Reviewed-by: Jerome Forissier Reviewed-by: Jens Wiklander Signed-off-by: Etienne Carriere --- core/arch/arm/kernel/thread_spmc_a64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/arch/arm/kernel/thread_spmc_a64.S b/core/arch/arm/kernel/thread_spmc_a64.S index 8ea2bce5f52..46f241c9f05 100644 --- a/core/arch/arm/kernel/thread_spmc_a64.S +++ b/core/arch/arm/kernel/thread_spmc_a64.S @@ -14,7 +14,7 @@ #include #include -#if CFG_SECURE_PARTITION +#ifdef CFG_SECURE_PARTITION LOCAL_FUNC thread_ffa_interrupt , : mov_imm x0, FFA_INTERRUPT /* FID */ /* X1: Endpoint/vCPU IDs is set by caller */ @@ -197,7 +197,7 @@ FUNC thread_foreign_intr_exit , : adr_l x2, threads madd x2, x1, x0, x2 ldr w1, [x2, #THREAD_CTX_TSD_RPC_TARGET_INFO] -#if CFG_SECURE_PARTITION +#ifdef CFG_SECURE_PARTITION /* load threads[w0].flags into w2 */ ldr w2, [x2, #THREAD_CTX_FLAGS] and w2, w2, #THREAD_FLAGS_FFA_ONLY