Skip to content

Commit c4c5645

Browse files
authored
Update port.c
1 parent 4eadd63 commit c4c5645

File tree

1 file changed

+3
-1
lines changed
  • portable/GCC/ARM_CM7/r0p1

1 file changed

+3
-1
lines changed

portable/GCC/ARM_CM7/r0p1/port.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ static void prvPortStartFirstTask( void )
271271
" isb \n"
272272
" svc 0 \n" /* System call to start first task. */
273273
" nop \n"
274+
" .ltorg \n" /* make sure the pool is placed here, so ldr doesn't generate a too long jump */
274275
);
275276
}
276277
/*-----------------------------------------------------------*/
@@ -697,7 +698,8 @@ static void vPortEnableVFP( void )
697698
" \n"
698699
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
699700
" 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 */
701703
);
702704
}
703705
/*-----------------------------------------------------------*/

0 commit comments

Comments
 (0)