mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
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:
committed by
Gregory Nutt
parent
97cda1baca
commit
4942867fcf
@@ -96,6 +96,7 @@ void __cyg_profile_func_enter(void *func, void *caller)
|
||||
"1: \n"
|
||||
" cmp r2, r10 \n" /* compare stack with limit */
|
||||
" 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"
|
||||
"2: \n"
|
||||
" bx lr \n"
|
||||
|
||||
Reference in New Issue
Block a user