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:
parent
ce591ac378
commit
cecdc99f38
3 changed files with 3 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue