From 65d78352b93ec090014ad4d34b59757adb23fbd5 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 10 Apr 2021 07:38:05 +0000 Subject: [PATCH] Improved port info. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14161 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/common/ports/ARMv6-M-RP2/chcore.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/os/common/ports/ARMv6-M-RP2/chcore.h b/os/common/ports/ARMv6-M-RP2/chcore.h index 54e76bfd5..4e98e638e 100644 --- a/os/common/ports/ARMv6-M-RP2/chcore.h +++ b/os/common/ports/ARMv6-M-RP2/chcore.h @@ -262,9 +262,14 @@ /** * @brief Port-specific information string. */ -#if (CORTEX_ALTERNATE_SWITCH == FALSE) || defined(__DOXYGEN__) - #define PORT_INFO "Preemption through NMI" +#if (CH_CFG_SMP_MODE != FALSE) || defined(__DOXYGEN__) + #if (CORTEX_ALTERNATE_SWITCH == FALSE) || defined(__DOXYGEN__) + #define PORT_INFO "Preemption through NMI (SMP)" + #else + #define PORT_INFO "Preemption through PendSV (SMP)" + #endif #else + #define PORT_INFO "Preemption through NMI" #define PORT_INFO "Preemption through PendSV" #endif /** @} */