acassis commented on code in PR #9201:
URL: https://github.com/apache/nuttx/pull/9201#discussion_r1186688517
##########
arch/arm64/src/common/arm64_schedulesigaction.c:
##########
@@ -46,9 +46,15 @@
* Public Functions
****************************************************************************/
-void arm64_init_signal_process(struct tcb_s *tcb)
+void arm64_init_signal_process(struct tcb_s *tcb, struct regs_context *regs)
{
- struct regs_context *pctx = (struct regs_context *)tcb->xcp.regs;
+/****************************************************************************
+ * if regs != NULL We are interrupting the context,
+ * we should modify the regs
+ ****************************************************************************/
+
+ struct regs_context *pctx = (regs != NULL)? regs :
Review Comment:
```suggestion
struct regs_context *pctx = (regs != NULL) ? 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]