arm: cmsis: Convert _ScbPendsvSet to use direct CMSIS register access

Jira: ZEP-1568

Change-Id: I25653d8fbe3842fbfa79191d388c6f6693fca39c
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-01-25 08:24:57 -06:00
commit 5068e9657f
2 changed files with 1 additions and 16 deletions

View file

@ -39,7 +39,7 @@ void k_thread_abort(k_tid_t thread)
_Swap(key); _Swap(key);
CODE_UNREACHABLE; CODE_UNREACHABLE;
} else { } else {
_ScbPendsvSet(); SCB->ICSR |= SCB_ICSR_PENDSVSET_Msk;
} }
} }

View file

@ -51,21 +51,6 @@ extern "C" {
#include <misc/util.h> #include <misc/util.h>
#include <stdint.h> #include <stdint.h>
/**
*
* @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 * @brief Find out if running in thread mode