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

Jira: ZEP-1568

Change-Id: I3d41fe88293bab2f40d9177cedb56e9265250dff
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-01-25 08:32:54 -06:00 committed by Maureen Helm
commit cecdc99f38
3 changed files with 3 additions and 17 deletions

View file

@ -61,21 +61,6 @@ static inline uint32_t _ScbActiveVectorGet(void)
#if defined(CONFIG_ARMV6_M)
#elif defined(CONFIG_ARMV7_M)
/**
*
* @brief Find out if the currently executing exception is nested
*
* This routine determines if the currently executing exception is nested.
*
* @return 1 if nested, 0 otherwise
*/
static inline int _ScbIsNestedExc(void)
{
/* !bit == preempted exceptions */
return !__scs.scb.icsr.bit.rettobase;
}
/**
*
* @brief Enable faulting on division by zero