summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/lib/gcc-support.c2
-rw-r--r--apps/plugins/test_codec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/gcc-support.c b/apps/plugins/lib/gcc-support.c
index 4ea9cfd13a..09a08fa9f5 100644
--- a/apps/plugins/lib/gcc-support.c
+++ b/apps/plugins/lib/gcc-support.c
@@ -22,7 +22,7 @@
22****************************************************************************/ 22****************************************************************************/
23#include "plugin.h" 23#include "plugin.h"
24 24
25#ifdef CPU_ARM 25#if defined(CPU_ARM) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
26void __attribute__((naked)) __div0(void) 26void __attribute__((naked)) __div0(void)
27{ 27{
28 asm volatile("bx %0" : : "r"(rb->__div0)); 28 asm volatile("bx %0" : : "r"(rb->__div0));
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 0c2e694eb9..09274133b7 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -615,7 +615,7 @@ static void init_ci(void)
615 ci.semaphore_release = rb->semaphore_release; 615 ci.semaphore_release = rb->semaphore_release;
616#endif 616#endif
617 617
618#ifdef CPU_ARM 618#if defined(CPU_ARM) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
619 ci.__div0 = rb->__div0; 619 ci.__div0 = rb->__div0;
620#endif 620#endif
621} 621}