summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs.c2
-rw-r--r--apps/codecs.h2
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
-rw-r--r--firmware/SOURCES2
5 files changed, 6 insertions, 4 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index 29a6644..9e77dd9 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -119,7 +119,7 @@ struct codec_api ci = {
NULL, /* configure */
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
__div0,
#endif
PREFIX(sleep),
diff --git a/apps/codecs.h b/apps/codecs.h
index 7e4fe94..97b33ec 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -156,7 +156,7 @@ struct codec_api {
void (*configure)(int setting, intptr_t value);
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
void (*__div0)(void);
#endif
void (*sleep)(int ticks);
diff --git a/apps/plugin.c b/apps/plugin.c
index b3baea7..cc540cd 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -345,7 +345,7 @@ static const struct plugin_api rockbox_api = {
dir_exists,
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
__div0,
#endif
PREFIX(sleep),
diff --git a/apps/plugin.h b/apps/plugin.h
index 5ee18d0..624b703 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -450,7 +450,7 @@ struct plugin_api {
bool (*dir_exists)(const char *path);
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
void (*__div0)(void);
#endif
void (*sleep)(int ticks);
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 4092f71..f27a7dd 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -448,7 +448,9 @@ target/arm/memset16-arm.S
#ifdef HAVE_PRIORITY_SCHEDULING
target/arm/ffs-arm.S
#endif
+#if CONFIG_PLATFORM & PLATFORM_NATIVE
target/arm/system-arm.c
+#endif
#if CONFIG_I2C == I2C_PP5024 || CONFIG_I2C == I2C_PP5020 || CONFIG_I2C == I2C_PP5002
target/arm/i2c-pp.c
#elif CONFIG_I2C == I2C_PNX0101