hujun260 commented on code in PR #15634:
URL: https://github.com/apache/nuttx/pull/15634#discussion_r1924674192


##########
arch/xtensa/src/esp32s2/esp32s2_irq.c:
##########
@@ -495,7 +496,8 @@ int esp32s2_setup_irq(int periphid, int priority, int type)
   int irq;
   int cpuint;
 
-  irqstate = enter_critical_section();
+  irqstate = spin_lock_irqsave(&g_irq_lock);

Review Comment:
   ![Uploading image.png…]()
   



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