From bf301fdbb6cc7858d3b53a31d08c06b83c7f10c8 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 10 Oct 2010 14:43:40 +0000 Subject: Fix a few div0 cases forgotten in r27684 to enable enabling asm optimizations for android builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28235 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/codec_crt0.c | 2 +- apps/plugins/lib/gcc-support.c | 2 +- apps/plugins/test_codec.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/codecs/codec_crt0.c b/apps/codecs/codec_crt0.c index c845f79a40..184da74c8f 100644 --- a/apps/codecs/codec_crt0.c +++ b/apps/codecs/codec_crt0.c @@ -58,7 +58,7 @@ enum codec_status codec_start(void) return codec_main(); } -#ifdef CPU_ARM +#if defined(CPU_ARM) && (CONFIG_PLATFORM & PLATFORM_NATIVE) void __attribute__((naked)) __div0(void) { asm volatile("bx %0" : : "r"(ci->__div0)); 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 @@ ****************************************************************************/ #include "plugin.h" -#ifdef CPU_ARM +#if defined(CPU_ARM) && (CONFIG_PLATFORM & PLATFORM_NATIVE) void __attribute__((naked)) __div0(void) { 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) ci.semaphore_release = rb->semaphore_release; #endif -#ifdef CPU_ARM +#if defined(CPU_ARM) && (CONFIG_PLATFORM & PLATFORM_NATIVE) ci.__div0 = rb->__div0; #endif } -- cgit v1.2.3