Merged in david_s5/nuttx/master_stack_check (pull request #834)

armv7-m:stackcheck allow faulting stack calculation to make it to the up_assert reg dump

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
David Sidrane
2019-02-28 21:36:47 +00:00
committed by Gregory Nutt
parent 97cda1baca
commit 4942867fcf
+1
View File
@@ -96,6 +96,7 @@ void __cyg_profile_func_enter(void *func, void *caller)
"1: \n" "1: \n"
" cmp r2, r10 \n" /* compare stack with limit */ " cmp r2, r10 \n" /* compare stack with limit */
" bgt 2f \n" /* stack is above limit and thus OK */ " bgt 2f \n" /* stack is above limit and thus OK */
" mov r11, r2 \n" /* fault with R11 set to calculated low */
" b __stack_overflow_trap\n" " b __stack_overflow_trap\n"
"2: \n" "2: \n"
" bx lr \n" " bx lr \n"