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:
niniemann 2022-03-10 18:19:58 +01:00 committed by GitHub
parent f18e432d49
commit bdec3b6e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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 )

View File

@ -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 )