suoyuanG commented on code in PR #17110:
URL: https://github.com/apache/nuttx/pull/17110#discussion_r2386830002


##########
arch/arm/src/common/arm_checkstack.c:
##########
@@ -226,10 +226,11 @@ size_t up_check_tcbstack(struct tcb_s *tcb, size_t 
check_size)
 }
 
 #if CONFIG_ARCH_INTERRUPTSTACK > 3
-size_t up_check_intstack(int cpu)
+size_t up_check_intstack(int cpu, size_t check_size)
 {
-  return arm_stack_check((void *)up_get_intstackbase(cpu),
-                         STACK_ALIGN_DOWN(CONFIG_ARCH_INTERRUPTSTACK));
+  if (check_size == 0)
+    check_size = STACK_ALIGN_DOWN(CONFIG_ARCH_INTERRUPTSTACK);

Review Comment:
   fix



##########
sched/irq/irq_dispatch.c:
##########
@@ -157,4 +157,11 @@ void irq_dispatch(int irq, FAR void *context)
       kmm_checkcorruption();
     }
 #endif
+
+#ifdef CONFIG_STACKCHECK_SOFTWARE
+#if CONFIG_STACKCHECK_MARGIN > 0

Review Comment:
   fix



-- 
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