summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ross <midgey@rockbox.org>2009-02-27 23:15:59 +0000
committerTom Ross <midgey@rockbox.org>2009-02-27 23:15:59 +0000
commitcf7a71c3021eedafdb69addf6392b1b51e4d1935 (patch)
tree915dee80eadffa419574a3fac843e583e2b6afe4
parentb61f0c688483c8f17ebcf12ae3d1fb20cdd59ab9 (diff)
downloadrockbox-cf7a71c3021eedafdb69addf6392b1b51e4d1935.zip
rockbox-cf7a71c3021eedafdb69addf6392b1b51e4d1935.tar.gz
rockbox-cf7a71c3021eedafdb69addf6392b1b51e4d1935.tar.bz2
rockbox-cf7a71c3021eedafdb69addf6392b1b51e4d1935.tar.xz
r20124 broke codecs on targets without IRAM such as Gigabeat F. Behavior should be identical to r20123 on all sim builds and targets and apply a more correct fix for OS X.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20135 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 9638185..55d5ffd 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -624,7 +624,6 @@
#define ICONST_ATTR __attribute__ ((section(".irodata")))
#define IDATA_ATTR __attribute__ ((section(".idata")))
#define IBSS_ATTR __attribute__ ((section(".ibss")))
-#define DATA_ATTR __attribute__ ((section(".data")))
#define USE_IRAM
#if CONFIG_CPU != SH7034
#define PLUGIN_USE_IRAM
@@ -642,10 +641,15 @@
#define ICONST_ATTR
#define IDATA_ATTR
#define IBSS_ATTR
-#define DATA_ATTR
#define STATICIRAM static
#endif
+#if defined(SIMULATOR) && defined(__APPLE__)
+#define DATA_ATTR __attribute__ ((section(".section __DATA, __data")))
+#else
+#define DATA_ATTR __attribute__ ((section(".data")))
+#endif
+
#ifndef IRAM_LCDFRAMEBUFFER
/* if the LCD framebuffer has not been moved to IRAM, define it empty here */
#define IRAM_LCDFRAMEBUFFER