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

@ -88,7 +88,7 @@ _stack_frame_endif:
eors.n r0, r0
msr BASEPRI, r0
/* this reimplements _ScbIsNestedExc() */
/* this checks to see if we are in a nested exception */
ldr ip, =_SCS_ICSR
ldr ip, [ip]
ands.w ip, #_SCS_ICSR_RETTOBASE