mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
sched: Improve nxsched stack overflow checking implementation
1. Remove STACKCHECK_SOFTWARE config, 2. Do sp value checking when STACKCHECK_MARGIN == 0, 3. Do margin-based stack check when STACKCHECK_MARGIN > 0, 4. Disable stack check when STACKCHECK_MARGIN == -1 Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
committed by
Xiang Xiao
parent
1210dc4919
commit
07a470f696
@@ -56,8 +56,7 @@ Stack Overflow Software Check During Context Switching
|
||||
2. Check if the sp register is out of bounds.
|
||||
|
||||
Usage:
|
||||
Enable CONFIG_STACKCHECK_SOFTWARE
|
||||
You can set the detection length by STACKCHECK_MARGIN
|
||||
Set the detection length by STACKCHECK_MARGIN
|
||||
|
||||
Stack Overflow Hardware Check
|
||||
-----------------------------
|
||||
|
||||
Reference in New Issue
Block a user