diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-10-19 19:35:24 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-10-19 19:35:24 +0000 |
commit | abd9f83e92fae22dcb9806deae665b7b303f430d (patch) | |
tree | 8d0d1d65c6aaa596e171cda2d78706739046d0bd /firmware/export | |
parent | 266f173b72967bae96119e5428fabe692edd8c30 (diff) |
Two new sections for IRAM usage: .irodata (selectable with the ICONST_ATTR attribute macro), allowing to put 'const' data into IRAM without causing a section type conflict, and .ibss (selectable with the IBSS_ATTR attribute macro) for uninitialised data. * Rockbox core: Adjusted the linker scripts and init code to not include the .ibss section in the binary, it is cleared instead. Saves ~500 bytes on archos and ~30KB on iriver. Codecs and plugins don't handle .ibss in a special way yet. * The init code properly handles empty sections now (except .stack, which should never be empty). * Unified the init code for SH1 and coldfire a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7644 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 966f47cb5a..66f53eb0ed 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -139,11 +139,15 @@ (CONFIG_CPU == MCF5249) || /* Coldfire: core, plugins, codecs */ \ (CONFIG_CPU == TCC730)) /* CalmRISC16: core, (plugins, codecs) */ #define ICODE_ATTR __attribute__ ((section(".icode"))) +#define ICONST_ATTR __attribute__ ((section(".irodata"))) #define IDATA_ATTR __attribute__ ((section(".idata"))) +#define IBSS_ATTR __attribute__ ((section(".ibss"))) #define USE_IRAM #else #define ICODE_ATTR +#define ICONST_ATTR #define IDATA_ATTR +#define IBSS_ATTR #endif #endif |