From a863def6b6ff6b1265eb1fc0c38c9b774617a4af Mon Sep 17 00:00:00 2001 From: danyhm <21024667+danyhm@users.noreply.github.com> Date: Sat, 9 May 2020 22:01:24 +0430 Subject: [PATCH 1/4] Update port.c --- portable/GCC/ARM_CM3/port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/portable/GCC/ARM_CM3/port.c b/portable/GCC/ARM_CM3/port.c index b17f1c7..0e49bf4 100644 --- a/portable/GCC/ARM_CM3/port.c +++ b/portable/GCC/ARM_CM3/port.c @@ -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 */ ); } /*-----------------------------------------------------------*/ From f973e3424e30605df483dbf2662efaad9de0fb40 Mon Sep 17 00:00:00 2001 From: danyhm <21024667+danyhm@users.noreply.github.com> Date: Sat, 9 May 2020 22:02:21 +0430 Subject: [PATCH 2/4] Update port.c --- portable/GCC/ARM_CM4F/port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portable/GCC/ARM_CM4F/port.c b/portable/GCC/ARM_CM4F/port.c index e18d94e..13b0c9c 100644 --- a/portable/GCC/ARM_CM4F/port.c +++ b/portable/GCC/ARM_CM4F/port.c @@ -707,7 +707,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 */ ); } /*-----------------------------------------------------------*/ From 4eadd6360a2ab1adb77bf5f8cb6a90bc5297a1e8 Mon Sep 17 00:00:00 2001 From: danyhm <21024667+danyhm@users.noreply.github.com> Date: Sat, 9 May 2020 22:02:57 +0430 Subject: [PATCH 3/4] Update port.c --- portable/GCC/ARM_CM4F/port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/portable/GCC/ARM_CM4F/port.c b/portable/GCC/ARM_CM4F/port.c index 13b0c9c..07b1443 100644 --- a/portable/GCC/ARM_CM4F/port.c +++ b/portable/GCC/ARM_CM4F/port.c @@ -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 */ ); } /*-----------------------------------------------------------*/ From c4c56454e7ab5cd88bac2d19292e1227f84192ce Mon Sep 17 00:00:00 2001 From: danyhm <21024667+danyhm@users.noreply.github.com> Date: Sat, 9 May 2020 22:04:02 +0430 Subject: [PATCH 4/4] Update port.c --- portable/GCC/ARM_CM7/r0p1/port.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/portable/GCC/ARM_CM7/r0p1/port.c b/portable/GCC/ARM_CM7/r0p1/port.c index 5e1f805..094b5c0 100644 --- a/portable/GCC/ARM_CM7/r0p1/port.c +++ b/portable/GCC/ARM_CM7/r0p1/port.c @@ -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 */ ); } /*-----------------------------------------------------------*/ @@ -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 */ ); } /*-----------------------------------------------------------*/