gustavonihei commented on a change in pull request #5336:
URL: https://github.com/apache/incubator-nuttx/pull/5336#discussion_r809489102



##########
File path: arch/xtensa/src/common/xtensa_swint.c
##########
@@ -94,16 +102,79 @@ int xtensa_svcall(int irq, void *context, void *arg)
 
       case SYS_save_context:
         {
+          DEBUGASSERT(regs[REG_A3] != 0);
+          memcpy((uint32_t *)regs[REG_A3], regs, (4 * XCPTCONTEXT_REGS));
+        }
+      break;

Review comment:
       ```suggestion
         case SYS_save_context:
           {
             DEBUGASSERT(regs[REG_A3] != 0);
             memcpy((uint32_t *)regs[REG_A3], regs, (4 * XCPTCONTEXT_REGS));
           }
           break;
   ```
   `break` statement should be column-aligned to the closing braces.




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