From 2fd2d1efb9a720b7e601123e5504730685e98557 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 10 Mar 2015 10:40:37 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7747 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/ARMCMx/chcore_v6m.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'os/rt/ports/ARMCMx/chcore_v6m.c') diff --git a/os/rt/ports/ARMCMx/chcore_v6m.c b/os/rt/ports/ARMCMx/chcore_v6m.c index e7514cbe4..b799a8724 100644 --- a/os/rt/ports/ARMCMx/chcore_v6m.c +++ b/os/rt/ports/ARMCMx/chcore_v6m.c @@ -51,13 +51,15 @@ /* Module interrupt handlers. */ /*===========================================================================*/ -#if !CORTEX_ALTERNATE_SWITCH || defined(__DOXYGEN__) +#if (CORTEX_ALTERNATE_SWITCH == FALSE) || defined(__DOXYGEN__) /** * @brief NMI vector. * @details The NMI vector is used for exception mode re-entering after a * context switch. */ +/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/ void NMI_Handler(void) { +/*lint -restore*/ /* The port_extctx structure is pointed by the PSP register.*/ struct port_extctx *ctxp = (struct port_extctx *)__get_PSP(); @@ -74,13 +76,15 @@ void NMI_Handler(void) { } #endif /* !CORTEX_ALTERNATE_SWITCH */ -#if CORTEX_ALTERNATE_SWITCH || defined(__DOXYGEN__) +#if (CORTEX_ALTERNATE_SWITCH == TRUE) || defined(__DOXYGEN__) /** * @brief PendSV vector. * @details The PendSV vector is used for exception mode re-entering after a * context switch. */ +/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/ void PendSV_Handler(void) { +/*lint -restore*/ /* The port_extctx structure is pointed by the PSP register.*/ struct port_extctx *ctxp = (struct port_extctx *)__get_PSP(); @@ -105,7 +109,7 @@ void PendSV_Handler(void) { */ void _port_irq_epilogue(regarm_t lr) { - if (lr != (regarm_t)0xFFFFFFF1) { + if (lr != (regarm_t)0xFFFFFFF1U) { struct port_extctx *ctxp; port_lock_from_isr(); -- cgit v1.2.3