diff --git a/os/common/ports/ARMv6-M-RP2/chcore.c b/os/common/ports/ARMv6-M-RP2/chcore.c index f34cb81b8..5a8993321 100644 --- a/os/common/ports/ARMv6-M-RP2/chcore.c +++ b/os/common/ports/ARMv6-M-RP2/chcore.c @@ -96,7 +96,7 @@ void PendSV_Handler(void) { /* Writing back the modified PSP value.*/ __set_PSP((uint32_t)ctxp); -#if CH_CFG_SMP_MODE != FALSE +#if CH_CFG_SMP_MODE== TRUE /* Interrupts have been re-enabled in the ASM part but the spinlock is still taken, releasing it.*/ port_spinlock_release(); @@ -104,7 +104,7 @@ void PendSV_Handler(void) { } #endif /* CORTEX_ALTERNATE_SWITCH */ -#if (CH_CFG_SMP_MODE != FALSE) || defined(__DOXYGEN__) +#if (CH_CFG_SMP_MODE== TRUE) || defined(__DOXYGEN__) /** * @brief FIFO interrupt handler for core 0. * @@ -164,7 +164,7 @@ CH_IRQ_HANDLER(Vector80) { CH_IRQ_EPILOGUE(); } -#endif /* CH_CFG_SMP_MODE != FALSE */ +#endif /* CH_CFG_SMP_MODE== TRUE */ /*===========================================================================*/ /* Module exported functions. */ @@ -186,7 +186,7 @@ void port_init(os_instance_t *oip) { /* Activating timer for this instance.*/ port_timer_enable(oip); -#if CH_CFG_SMP_MODE != FALSE +#if CH_CFG_SMP_MODE== TRUE /* FIFO handlers for each core.*/ SIO->FIFO_ST = SIO_FIFO_ST_ROE | SIO_FIFO_ST_WOF; if (core_id == 0U) { @@ -252,7 +252,7 @@ void __port_irq_epilogue(uint32_t lr) { } } -#if (CH_CFG_SMP_MODE != FALSE) || defined(__DOXYGEN__) +#if (CH_CFG_SMP_MODE== TRUE) || defined(__DOXYGEN__) /** * @brief Takes the kernel spinlock. */ @@ -268,6 +268,6 @@ void __port_spinlock_release(void) { port_spinlock_release(); } -#endif /* CH_CFG_SMP_MODE != FALSE */ +#endif /* CH_CFG_SMP_MODE== TRUE */ /** @} */ diff --git a/os/common/ports/ARMv6-M-RP2/compilers/GCC/chcoreasm.S b/os/common/ports/ARMv6-M-RP2/compilers/GCC/chcoreasm.S index e8c908725..2cfce94ab 100644 --- a/os/common/ports/ARMv6-M-RP2/compilers/GCC/chcoreasm.S +++ b/os/common/ports/ARMv6-M-RP2/compilers/GCC/chcoreasm.S @@ -105,7 +105,7 @@ __port_thread_start: #if CH_DBG_STATISTICS bl __stats_stop_measure_crit_thd #endif -#if CH_CFG_SMP_MODE != FALSE +#if CH_CFG_SMP_MODE == TRUE bl __port_spinlock_release #endif cpsie i