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:
wangchengdong
2025-10-01 21:46:38 +08:00
committed by Xiang Xiao
parent 1210dc4919
commit 07a470f696
8 changed files with 119 additions and 30 deletions
+1 -2
View File
@@ -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
-----------------------------