XuNeo opened a new pull request, #15758: URL: https://github.com/apache/nuttx/pull/15758
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Make sure the registers context size is aligned to 16bytes as required by armv8-a. This issue has been reported earlier, thus make sense to make sure it won't happen in future. ## Impact No impact on existing code. ## Testing Tested with qemu build and pass. ``` cmake -Bbuild -GNinja -DBOARD_CONFIG=qemu-armv8a:nsh_smp nuttx ``` If `ARM64_CONTEXT_REGS` is configured to wrong value like `37`. It reports error. ``` In file included from /home/neo/projects/nuttx/nuttx/include/nuttx/irq.h:39, from /home/neo/projects/nuttx/nuttx/sched/signal/sig_allocpendingsigaction.c:32: /home/neo/projects/nuttx/build/include/arch/irq.h:165:4: error: #error "ARM64_CONTEXT_REGS must be even to make stack aligned to 16 bytes" 165 | # error "ARM64_CONTEXT_REGS must be even to make stack aligned to 16 bytes" | ^~~~~ ninja: build stopped: subcommand failed -- 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