Skip to content

Add ltorg to gcc arm cm3+4f+7 port #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions portable/GCC/ARM_CM3/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ static void prvPortStartFirstTask( void )
" isb \n"
" svc 0 \n" /* System call to start first task. */
" nop \n"
" .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
);
}
/*-----------------------------------------------------------*/
Expand Down
4 changes: 3 additions & 1 deletion portable/GCC/ARM_CM4F/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ static void prvPortStartFirstTask( void )
" isb \n"
" svc 0 \n" /* System call to start first task. */
" nop \n"
" .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
);
}
/*-----------------------------------------------------------*/
Expand Down Expand Up @@ -707,7 +708,8 @@ static void vPortEnableVFP( void )
" \n"
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
" str r1, [r0] \n"
" bx r14 "
" bx r14 \n"
" .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
);
}
/*-----------------------------------------------------------*/
Expand Down
4 changes: 3 additions & 1 deletion portable/GCC/ARM_CM7/r0p1/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ static void prvPortStartFirstTask( void )
" isb \n"
" svc 0 \n" /* System call to start first task. */
" nop \n"
" .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
);
}
/*-----------------------------------------------------------*/
Expand Down Expand Up @@ -697,7 +698,8 @@ static void vPortEnableVFP( void )
" \n"
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
" str r1, [r0] \n"
" bx r14 "
" bx r14 \n"
" .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
);
}
/*-----------------------------------------------------------*/
Expand Down