diff --git a/arch/arm/core/thread_abort.c b/arch/arm/core/thread_abort.c index ec1a18e532a..a24e2bbcf03 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 967b492b2cd..df9e3a88d11 100644 --- a/include/arch/arm/cortex_m/scb.h +++ b/include/arch/arm/cortex_m/scb.h @@ -51,21 +51,6 @@ extern "C" { #include #include -/** - * - * @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