File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ static void prvPortStartFirstTask( void )
247
247
" isb \n"
248
248
" svc 0 \n" /* System call to start first task. */
249
249
" nop \n"
250
+ " .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
250
251
);
251
252
}
252
253
/*-----------------------------------------------------------*/
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ static void prvPortStartFirstTask( void )
277
277
" isb \n"
278
278
" svc 0 \n" /* System call to start first task. */
279
279
" nop \n"
280
+ " .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
280
281
);
281
282
}
282
283
/*-----------------------------------------------------------*/
@@ -707,7 +708,8 @@ static void vPortEnableVFP( void )
707
708
" \n"
708
709
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
709
710
" str r1, [r0] \n"
710
- " bx r14 "
711
+ " bx r14 \n"
712
+ " .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
711
713
);
712
714
}
713
715
/*-----------------------------------------------------------*/
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ static void prvPortStartFirstTask( void )
271
271
" isb \n"
272
272
" svc 0 \n" /* System call to start first task. */
273
273
" nop \n"
274
+ " .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
274
275
);
275
276
}
276
277
/*-----------------------------------------------------------*/
@@ -697,7 +698,8 @@ static void vPortEnableVFP( void )
697
698
" \n"
698
699
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
699
700
" str r1, [r0] \n"
700
- " bx r14 "
701
+ " bx r14 \n"
702
+ " .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
701
703
);
702
704
}
703
705
/*-----------------------------------------------------------*/
You can’t perform that action at this time.
0 commit comments