diff --git a/apps/codecs.c b/apps/codecs.c index 29a664425a..9e77dd9099 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 7e4fe948c2..97b33ec9ad 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 b3baea757c..cc540cd988 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 5ee18d0078..624b7039b8 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 4092f71e04..f27a7dd140 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