jlaitine commented on code in PR #19061:
URL: https://github.com/apache/nuttx/pull/19061#discussion_r3374153675


##########
sched/misc/assert.c:
##########
@@ -347,9 +349,44 @@ static void dump_stacks(FAR struct tcb_s *rtcb, uintptr_t 
sp)
     }
 }
 
+#else /* CONFIG_SCHED_DUMP_STACK */
+
+/****************************************************************************
+ * Name: dump_stacks
+ ****************************************************************************/
+
+static void dump_stacks(FAR struct tcb_s *rtcb, uintptr_t sp)
+{
+  UNUSED(sp);
+
+#if CONFIG_ARCH_INTERRUPTSTACK > 0
+#  ifdef CONFIG_SMP
+  int cpu = rtcb->cpu;
+#  else
+  int cpu = this_cpu();
+#  endif
+
+  _alert("IRQ Stack: base: %p size: %u\n",

Review Comment:
   Just tried to make it as small as possible; I can refactor this for sure!



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