Ouss4 commented on a change in pull request #2061:
URL: https://github.com/apache/incubator-nuttx/pull/2061#discussion_r510688666



##########
File path: arch/arm/src/armv7-m/gnu/arm_exception.S
##########
@@ -321,9 +322,9 @@ exception_common:
        .bss
        .global g_intstackalloc
        .global g_intstackbase
-       .align  8
+       .balign 8
 g_intstackalloc:
-       .skip   ((CONFIG_ARCH_INTERRUPTSTACK + 4) & ~7)
+       .skip   (CONFIG_ARCH_INTERRUPTSTACK & ~7)

Review comment:
       If `CONFIG_ARCH_INTERRUPTSTACK> 0 && CONFIG_ARCH_INTERRUPTSTACK < 7` we 
won't align anything since we consider this value as "no interrupt stack".
   But I understand and I agree with the rest of what you are saying.  We have 
to be consistent either aligning up or down. BTW, I decided to go with aligning 
up in my Xtensa PR (#2014)
   
   > Shall we keep this commit (i.e. remove +4) at line 326?
   
   Yes, I think we should keep the commit.




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

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


Reply via email to