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. */
|
||||
" bx r14 \n"
|
||||
" \n"
|
||||
" .ltorg \n"/* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||
" .align 4 \n"
|
||||
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
||||
);
|
||||
@ -579,6 +580,7 @@ void xPortPendSVHandler( void )
|
||||
" msr psp, r0 \n"
|
||||
" bx r14 \n"
|
||||
" \n"
|
||||
" .ltorg \n"/* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||
" .align 4 \n"
|
||||
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
||||
::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||
|
@ -394,6 +394,7 @@ static void prvRestoreContextOfFirstTask( void )
|
||||
" msr basepri, r0 \n"
|
||||
" bx r14 \n"
|
||||
" \n"
|
||||
" .ltorg \n"/* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||
" .align 4 \n"
|
||||
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
||||
);
|
||||
@ -631,6 +632,7 @@ void xPortPendSVHandler( void )
|
||||
" msr psp, r0 \n"
|
||||
" bx r14 \n"
|
||||
" \n"
|
||||
" .ltorg \n"/* Assemble the current literal pool to avoid offset-out-of-bound errors with lto. */
|
||||
" .align 4 \n"
|
||||
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
||||
::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||
|
Reference in New Issue
Block a user