xiaoxiang781216 commented on code in PR #13486:
URL: https://github.com/apache/nuttx/pull/13486#discussion_r1761682683


##########
arch/arm/include/tlsr82/irq.h:
##########
@@ -294,6 +294,22 @@ static inline_function void up_set_current_regs(uint32_t 
*regs)
   g_current_regs[up_cpu_index()] = regs;
 }
 
+noinstrument_function
+static inline_function bool up_interrupt_context(void)
+{
+#ifdef CONFIG_SMP

Review Comment:
   change to `return up_current_regs() != NULL;`



##########
arch/arm/include/armv8-m/irq.h:
##########
@@ -567,6 +567,21 @@ static inline_function void up_set_current_regs(uint32_t 
*regs)
   g_current_regs[up_cpu_index()] = regs;
 }
 
+noinstrument_function
+static inline_function bool up_interrupt_context(void)
+{
+#ifdef CONFIG_SMP
+  irqstate_t flags = up_irq_save();
+#endif

Review Comment:
   call up_current_regs



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