wangchdo commented on code in PR #17121:
URL: https://github.com/apache/nuttx/pull/17121#discussion_r2394679851


##########
Kconfig:
##########
@@ -2455,23 +2455,13 @@ config STACK_COLORATION
 
                Only supported by a few architectures.
 
-config STACKCHECK_SOFTWARE

Review Comment:
   Done



##########
include/nuttx/sched.h:
##########
@@ -1214,6 +1214,31 @@ struct binary_s;  /* Forward reference */
 int group_exitinfo(pid_t pid, FAR struct binary_s *bininfo);
 #endif
 
+/****************************************************************************
+ * Name: nxsched_checkstackoverflow
+ *
+ * Description:
+ *   Perform a stack overflow check for the specified task.
+ *
+ *   This function is enabled when either software-based stack checking is
+ *   configured (CONFIG_STACKCHECK_SOFTWARE) or a non-zero stack margin
+ *   (CONFIG_STACKCHECK_MARGIN > 0) is defined.  It will verify that the
+ *   task's stack has not overflowed beyond the allowed margin.
+ *
+ * Input Parameters:
+ *   tcb - The TCB of the task whose stack is to be checked.
+ *
+ * Returned Value:
+ *   None
+ *
+ ****************************************************************************/
+
+#if (CONFIG_STACKCHECK_MARGIN >= 0)
+void nxsched_checkstackoverflow(FAR struct tcb_s *tcb);

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to