wangzhi-art commented on code in PR #15345:
URL: https://github.com/apache/nuttx/pull/15345#discussion_r1900886589


##########
arch/avr/src/avr32/avr_sigdeliver.c:
##########
@@ -104,7 +105,7 @@ void avr_sigdeliver(void)
 
   regs[REG_PC]     = rtcb->xcp.saved_pc;
   regs[REG_SR]     = rtcb->xcp.saved_sr;

Review Comment:
   Done.



##########
arch/ceva/src/common/ceva_sigdeliver.c:
##########
@@ -63,17 +63,17 @@ void ceva_sigdeliver(void)
 
   int saved_errno = rtcb->pterrno;
 
-  sinfo("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
-        rtcb, rtcb->sigdeliver, rtcb->sigpendactionq.head);
-  DEBUGASSERT(rtcb->sigdeliver != NULL);
+  sinfo("rtcb=%p sigpendactionq.head=%p\n",
+        rtcb, rtcb->sigpendactionq.head);
+  DEBUGASSERT((rtcb->flags & TCB_FLAG_SIGDELIVER) != 0);
 
   /* Get a local copy of the sigdeliver function pointer. We do this so that
    * we can nullify the sigdeliver function pointer in the TCB and accept
    * more signal deliveries while processing the current pending signals.
    */
 
-  sigdeliver       = rtcb->sigdeliver;
-  rtcb->sigdeliver = NULL;
+  sigdeliver       = nxsig_deliver;

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