mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
fix: add additional .ltorg directives to GCC CM3/CM4 mpu ports (#473)
Co-authored-by: Nils Niemann <Niemann.N@eppendorf.de>
This commit is contained in:
parent
f18e432d49
commit
bdec3b6e54
|
@ -369,6 +369,7 @@ static void prvRestoreContextOfFirstTask( void )
|
||||||
" ldr r14, =0xfffffffd \n"/* Load exec return code. */
|
" ldr r14, =0xfffffffd \n"/* Load exec return code. */
|
||||||
" bx r14 \n"
|
" bx r14 \n"
|
||||||
" \n"
|
" \n"
|
||||||
|
" .ltorg \n"/* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||||
" .align 4 \n"
|
" .align 4 \n"
|
||||||
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
||||||
);
|
);
|
||||||
|
@ -579,6 +580,7 @@ void xPortPendSVHandler( void )
|
||||||
" msr psp, r0 \n"
|
" msr psp, r0 \n"
|
||||||
" bx r14 \n"
|
" bx r14 \n"
|
||||||
" \n"
|
" \n"
|
||||||
|
" .ltorg \n"/* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||||
" .align 4 \n"
|
" .align 4 \n"
|
||||||
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
||||||
::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
|
|
|
@ -394,6 +394,7 @@ static void prvRestoreContextOfFirstTask( void )
|
||||||
" msr basepri, r0 \n"
|
" msr basepri, r0 \n"
|
||||||
" bx r14 \n"
|
" bx r14 \n"
|
||||||
" \n"
|
" \n"
|
||||||
|
" .ltorg \n"/* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||||
" .align 4 \n"
|
" .align 4 \n"
|
||||||
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
||||||
);
|
);
|
||||||
|
@ -631,6 +632,7 @@ void xPortPendSVHandler( void )
|
||||||
" msr psp, r0 \n"
|
" msr psp, r0 \n"
|
||||||
" bx r14 \n"
|
" bx r14 \n"
|
||||||
" \n"
|
" \n"
|
||||||
|
" .ltorg \n"/* Assemble the current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||||
" .align 4 \n"
|
" .align 4 \n"
|
||||||
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
||||||
::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
|
|
Loading…
Reference in a new issue