masayuki2009 opened a new pull request #2061: URL: https://github.com/apache/incubator-nuttx/pull/2061
## Summary - This PR refactors interrupt stack related code for all ARM architectures - Also, this PR includes a fix for CPUx Idle stack for Cortex-A SMP - This PR consists of the following commits - commit 1: arch: armv7-a: Fix style warnings in smp.h - commit 2: arch: armv7-a: Fix SMP_STACK_TOP in smp.h - This commit fixes CPUx IDLE stack top for SMP - commit 3: boards: sabre-6quad: Update nsh/defconfig - Add CONFIG_DEBUG_FULLOPT=y - Add CONFIG_DEBUG_SYMBOLS=y - Remove CONFIG_HOST_WINDOWS=y - Add CONFIG_READLINE_CMD_HISTORY=y - Add CONFIG_STACK_COLORATION=y - commit 4: armv7-a, imx6: Refactor interrupt stack related code - Remove -4/-8 offset coding in imx_irq.c and arm_vectors.S - Instead, add SP adjustment after calling setirqstack/setfiqstack - Also, fix alignments for g_intstackalloc - Fix comments on the user stack pointer in arm_vectors.S - Also, fix up_dumpstate() to extract the user stack pointer - NOTE: stack pointer alignment is 8-byte - commit 5: arm, c5471: Refactor interrupt stack related code - Apply the same logic for armv7-a - NOTE: stack pointer alignment is 4-byte - commit 6: boards: stm32f4discovery: Update wifi/defconfig - Add CONFIG_ARCH_INTERRUPTSTACK=2048 - Add CONFIG_ARMV7M_LAZYFPU=y - Add CONFIG_TESTING_OSTEST_FPUSIZE=132 - commit 7: armv7-m, cxd56xx, lc823450: Refactor interrupt stack related code - Remove +4/-8 offset coding - Instead, add SP adjustment after calling setintstack - Also, fix alignments for g_intstackalloc - NOTE: stack pointer alignment is 8-byte - commit 8: arch: armv8-m: Refactor interrupt stack related code - Apply the same logic for armv7-m - NOTE: stack pointer alignment is 8-byte - commit 9: arch: armv6-m: Refactor interrupt stack related code - Apply the same logic for armv7-m - NOTE: stack pointer alignment is 4-byte ## Impact - All ARM architectures with interrupt stack enabled ## Testing - Tested with sabre-6quad:smp with QEMU - Tested with sabre-6quad:nsh with QEMU - Built with c5471evm.nsh (CONFIG_ARCH_INTERRUPTSTACK=2048) - Built with ea3131:nsh (CONFIG_ARCH_INTERRUPTSTACK=2048) - Tested with spresense:wifi_smp - Tested with lc823450:smp - Tested with stm32f4discovery:wifi - Not tested for armv7-r - Not tested for armv8-m - Built with freedom-kl25z:nsh (CONFIG_ARCH_INTERRUPTSTACK=2048) - Not tested for armv6-m ---------------------------------------------------------------- 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