Change vApplicationIRQHandlerConst to 64-bit align

When MMU is disabled, all memory is device type and access should be
aligned. For following code, ullPortInterruptNestingConst should be
64bit aligned. Otherwise, it will crash,

    /* Increment the interrupt nesting counter. */
    LDR         X5, ullPortInterruptNestingConst
    LDR         X1, [X5]        /* Old nesting count in X1. */

However, ullPortInterruptNestingConst is defined after word (32bit)
aligned vApplicationIRQHandlerConst, which causes
ullPortInterruptNestingConstit is also 32bit aligned,

    vApplicationIRQHandlerConst: .word vApplicationIRQHandler
    ullPortInterruptNestingConst: .dword ullPortInterruptNesting

This patch define vApplicationIRQHandler as dword to solve this issue.

Signed-off-by: Shunyong Yang <yang.shunyong@gmail.com>
This commit is contained in:
Shunyong Yang 2021-03-19 16:47:50 +08:00
parent 56c6c55985
commit 8fb9b3789e

View file

@ -415,7 +415,7 @@ ullPortTaskHasFPUContextConst: .dword ullPortTaskHasFPUContext
ullICCPMRConst: .dword ullICCPMR
ullMaxAPIPriorityMaskConst: .dword ullMaxAPIPriorityMask
vApplicationIRQHandlerConst: .word vApplicationIRQHandler
vApplicationIRQHandlerConst: .dword vApplicationIRQHandler
ullPortInterruptNestingConst: .dword ullPortInterruptNesting
ullPortYieldRequiredConst: .dword ullPortYieldRequired
ullICCIARConst: .dword ullICCIAR