anchao commented on code in PR #14135:
URL: https://github.com/apache/nuttx/pull/14135#discussion_r1797537206


##########
arch/arm/src/arm/arm_undefinedinsn.c:
##########
@@ -42,6 +42,12 @@
 
 void arm_undefinedinsn(uint32_t *regs)
 {
+  /* Save the saved processor context in current_regs where it can be
+   * accessed for register dumps and possibly context switching.
+   */
+
+  up_set_current_regs(regs);

Review Comment:
   What is the difference between saving before and after `_alert()`?



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to