diff options
-rw-r--r-- | arch/arm/core/thread_abort.c | 2 | ||||
-rw-r--r-- | include/arch/arm/cortex_m/scb.h | 15 |
2 files changed, 1 insertions, 16 deletions
diff --git a/arch/arm/core/thread_abort.c b/arch/arm/core/thread_abort.c index ec1a18e53..a24e2bbcf 100644 --- a/arch/arm/core/thread_abort.c +++ b/arch/arm/core/thread_abort.c @@ -39,7 +39,7 @@ void k_thread_abort(k_tid_t thread) _Swap(key); CODE_UNREACHABLE; } else { - _ScbPendsvSet(); + SCB->ICSR |= SCB_ICSR_PENDSVSET_Msk; } } diff --git a/include/arch/arm/cortex_m/scb.h b/include/arch/arm/cortex_m/scb.h index 967b492b2..df9e3a88d 100644 --- a/include/arch/arm/cortex_m/scb.h +++ b/include/arch/arm/cortex_m/scb.h @@ -53,21 +53,6 @@ extern "C" { /** * - * @brief Set the PendSV exception - * - * Set the PendSV exception: it will be handled when the last nested exception - * returns, or immediately if running in thread mode. - * - * @return N/A - */ - -static inline void _ScbPendsvSet(void) -{ - __scs.scb.icsr.bit.pendsvset = 1; -} - -/** - * * @brief Find out if running in thread mode * * This routine determines if the current mode is thread mode. |