diff options
author | Tom Ross <midgey@rockbox.org> | 2009-02-27 23:15:59 +0000 |
---|---|---|
committer | Tom Ross <midgey@rockbox.org> | 2009-02-27 23:15:59 +0000 |
commit | cf7a71c3021eedafdb69addf6392b1b51e4d1935 (patch) | |
tree | 915dee80eadffa419574a3fac843e583e2b6afe4 | |
parent | b61f0c688483c8f17ebcf12ae3d1fb20cdd59ab9 (diff) | |
download | rockbox-cf7a71c3021eedafdb69addf6392b1b51e4d1935.tar.gz rockbox-cf7a71c3021eedafdb69addf6392b1b51e4d1935.zip |
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.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 963818551f..55d5ffd06f 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -624,7 +624,6 @@ | |||
624 | #define ICONST_ATTR __attribute__ ((section(".irodata"))) | 624 | #define ICONST_ATTR __attribute__ ((section(".irodata"))) |
625 | #define IDATA_ATTR __attribute__ ((section(".idata"))) | 625 | #define IDATA_ATTR __attribute__ ((section(".idata"))) |
626 | #define IBSS_ATTR __attribute__ ((section(".ibss"))) | 626 | #define IBSS_ATTR __attribute__ ((section(".ibss"))) |
627 | #define DATA_ATTR __attribute__ ((section(".data"))) | ||
628 | #define USE_IRAM | 627 | #define USE_IRAM |
629 | #if CONFIG_CPU != SH7034 | 628 | #if CONFIG_CPU != SH7034 |
630 | #define PLUGIN_USE_IRAM | 629 | #define PLUGIN_USE_IRAM |
@@ -642,10 +641,15 @@ | |||
642 | #define ICONST_ATTR | 641 | #define ICONST_ATTR |
643 | #define IDATA_ATTR | 642 | #define IDATA_ATTR |
644 | #define IBSS_ATTR | 643 | #define IBSS_ATTR |
645 | #define DATA_ATTR | ||
646 | #define STATICIRAM static | 644 | #define STATICIRAM static |
647 | #endif | 645 | #endif |
648 | 646 | ||
647 | #if defined(SIMULATOR) && defined(__APPLE__) | ||
648 | #define DATA_ATTR __attribute__ ((section(".section __DATA, __data"))) | ||
649 | #else | ||
650 | #define DATA_ATTR __attribute__ ((section(".data"))) | ||
651 | #endif | ||
652 | |||
649 | #ifndef IRAM_LCDFRAMEBUFFER | 653 | #ifndef IRAM_LCDFRAMEBUFFER |
650 | /* if the LCD framebuffer has not been moved to IRAM, define it empty here */ | 654 | /* if the LCD framebuffer has not been moved to IRAM, define it empty here */ |
651 | #define IRAM_LCDFRAMEBUFFER | 655 | #define IRAM_LCDFRAMEBUFFER |