xiaoxiang781216 commented on a change in pull request #5476:
URL: https://github.com/apache/incubator-nuttx/pull/5476#discussion_r821790956



##########
File path: arch/arm/src/c5471/c5471_irq.c
##########
@@ -59,7 +59,7 @@ volatile uint32_t *g_current_regs[1];
  * because we know that correct IRAM area is 0xffc00000.
  */
 
-extern int _svectors; /* Type does not matter */
+extern int *_svectors; /* Type does not matter */

Review comment:
       if _svectors is changed to:
   extern up_vector_t _svectors;
   compiler will assume _svectors has only one element, and report the out of 
range:
   ```
   c5471/c5471_irq.c: Fix error: '__builtin_memcpy' forming offset [4, 31] is 
out of the bounds [0, 4] of object '_svectors' with type 'int'
   ```




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