minabeoki opened a new pull request #5558: URL: https://github.com/apache/incubator-nuttx/pull/5558
## Summary * armv7-a has banked registers for each cpu mode. * NuttX uses SVC mode and USR mode when BUILD_KERNEL=y. * The exception handler in armv7-a/arm_vectors.S need to maintain both SVC's sp and USR's sp. * The current implementaion break SVC's sp. This patch is: * Correct SVC's sp by following line ``` add sp, sp, #XCPTCONTEXT_SIZE /* Restore SVC's sp */ ``` * Do not change sp(=r13) after the above line, so sp is not used after. * And, in the arm_vectordata, correct ldmia return. armv7-r is the almost same. ## Impact armv7-a: BUILD_KERNEL=y armv7-r: BUILD_PROTECTED=y ## Testing run programs on custom Cortex-A9 board w/ BUILD_KERNEL=y -- 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