diff options
author | Nils Wallménius <nils@rockbox.org> | 2012-05-08 15:58:09 +0200 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-05-08 22:46:12 +0200 |
commit | 2dda258f99cb5575724d26a32077dad92fb8e181 (patch) | |
tree | d688a64b8860d0c6ddc845140657feff4c1c995e /firmware | |
parent | b371b705c76eaa641325b517154a20c374ce41da (diff) | |
download | rockbox-2dda258f99cb5575724d26a32077dad92fb8e181.tar.gz rockbox-2dda258f99cb5575724d26a32077dad92fb8e181.zip |
Remove STATICIRAM hack
It was only needed by the old arm toolchain that we no longer use or support.
Change-Id: Id0e6c67477f8834a637079b03cde5fbf9da68b1c
Reviewed-on: http://gerrit.rockbox.org/233
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/ata.c | 12 | ||||
-rw-r--r-- | firmware/export/config.h | 10 | ||||
-rw-r--r-- | firmware/target/arm/pp/ata-pp5020.c | 2 |
3 files changed, 7 insertions, 17 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index f567a4bb8a..8dfc8d965d 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -205,7 +205,7 @@ static int set_multiple_mode(int sectors); | |||
205 | static int set_features(void); | 205 | static int set_features(void); |
206 | 206 | ||
207 | #ifndef ATA_TARGET_POLLING | 207 | #ifndef ATA_TARGET_POLLING |
208 | STATICIRAM ICODE_ATTR int wait_for_bsy(void) | 208 | static ICODE_ATTR int wait_for_bsy(void) |
209 | { | 209 | { |
210 | long timeout = current_tick + HZ*30; | 210 | long timeout = current_tick + HZ*30; |
211 | 211 | ||
@@ -220,7 +220,7 @@ STATICIRAM ICODE_ATTR int wait_for_bsy(void) | |||
220 | return 0; /* timeout */ | 220 | return 0; /* timeout */ |
221 | } | 221 | } |
222 | 222 | ||
223 | STATICIRAM ICODE_ATTR int wait_for_rdy(void) | 223 | static ICODE_ATTR int wait_for_rdy(void) |
224 | { | 224 | { |
225 | long timeout; | 225 | long timeout; |
226 | 226 | ||
@@ -244,7 +244,7 @@ STATICIRAM ICODE_ATTR int wait_for_rdy(void) | |||
244 | #define wait_for_rdy ata_wait_for_rdy | 244 | #define wait_for_rdy ata_wait_for_rdy |
245 | #endif | 245 | #endif |
246 | 246 | ||
247 | STATICIRAM ICODE_ATTR int wait_for_start_of_transfer(void) | 247 | static ICODE_ATTR int wait_for_start_of_transfer(void) |
248 | { | 248 | { |
249 | if (!wait_for_bsy()) | 249 | if (!wait_for_bsy()) |
250 | return 0; | 250 | return 0; |
@@ -252,7 +252,7 @@ STATICIRAM ICODE_ATTR int wait_for_start_of_transfer(void) | |||
252 | return (ATA_IN8(ATA_ALT_STATUS) & (STATUS_BSY|STATUS_DRQ)) == STATUS_DRQ; | 252 | return (ATA_IN8(ATA_ALT_STATUS) & (STATUS_BSY|STATUS_DRQ)) == STATUS_DRQ; |
253 | } | 253 | } |
254 | 254 | ||
255 | STATICIRAM ICODE_ATTR int wait_for_end_of_transfer(void) | 255 | static ICODE_ATTR int wait_for_end_of_transfer(void) |
256 | { | 256 | { |
257 | if (!wait_for_bsy()) | 257 | if (!wait_for_bsy()) |
258 | return 0; | 258 | return 0; |
@@ -275,7 +275,7 @@ static void ata_led(bool on) | |||
275 | #endif | 275 | #endif |
276 | 276 | ||
277 | #ifndef ATA_OPTIMIZED_READING | 277 | #ifndef ATA_OPTIMIZED_READING |
278 | STATICIRAM ICODE_ATTR void copy_read_sectors(unsigned char* buf, int wordcount) | 278 | static ICODE_ATTR void copy_read_sectors(unsigned char* buf, int wordcount) |
279 | { | 279 | { |
280 | unsigned short tmp = 0; | 280 | unsigned short tmp = 0; |
281 | 281 | ||
@@ -307,7 +307,7 @@ STATICIRAM ICODE_ATTR void copy_read_sectors(unsigned char* buf, int wordcount) | |||
307 | #endif /* !ATA_OPTIMIZED_READING */ | 307 | #endif /* !ATA_OPTIMIZED_READING */ |
308 | 308 | ||
309 | #ifndef ATA_OPTIMIZED_WRITING | 309 | #ifndef ATA_OPTIMIZED_WRITING |
310 | STATICIRAM ICODE_ATTR void copy_write_sectors(const unsigned char* buf, | 310 | static ICODE_ATTR void copy_write_sectors(const unsigned char* buf, |
311 | int wordcount) | 311 | int wordcount) |
312 | { | 312 | { |
313 | if ( (unsigned long)buf & 1) | 313 | if ( (unsigned long)buf & 1) |
diff --git a/firmware/export/config.h b/firmware/export/config.h index d85cf1e784..b642775b95 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -912,21 +912,11 @@ Lyre prototype 1 */ | |||
912 | && CONFIG_CPU != JZ4732 && CONFIG_CPU != AS3525v2 && CONFIG_CPU != IMX233 | 912 | && CONFIG_CPU != JZ4732 && CONFIG_CPU != AS3525v2 && CONFIG_CPU != IMX233 |
913 | #define PLUGIN_USE_IRAM | 913 | #define PLUGIN_USE_IRAM |
914 | #endif | 914 | #endif |
915 | #if defined(CPU_ARM) && !defined(__ARM_EABI__) | ||
916 | /* GCC quirk workaround: arm-elf-gcc treats static functions as short_call | ||
917 | * when not compiling with -ffunction-sections, even when the function has | ||
918 | * a section attribute. | ||
919 | * This is fixed with eabi since all calls are short ones by default */ | ||
920 | #define STATICIRAM | ||
921 | #else | ||
922 | #define STATICIRAM static | ||
923 | #endif | ||
924 | #else | 915 | #else |
925 | #define ICODE_ATTR | 916 | #define ICODE_ATTR |
926 | #define ICONST_ATTR | 917 | #define ICONST_ATTR |
927 | #define IDATA_ATTR | 918 | #define IDATA_ATTR |
928 | #define IBSS_ATTR | 919 | #define IBSS_ATTR |
929 | #define STATICIRAM static | ||
930 | #endif | 920 | #endif |
931 | 921 | ||
932 | #if (defined(CPU_PP) || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) || \ | 922 | #if (defined(CPU_PP) || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) || \ |
diff --git a/firmware/target/arm/pp/ata-pp5020.c b/firmware/target/arm/pp/ata-pp5020.c index 50a38cb23d..1fc302a60d 100644 --- a/firmware/target/arm/pp/ata-pp5020.c +++ b/firmware/target/arm/pp/ata-pp5020.c | |||
@@ -133,7 +133,7 @@ void ata_dma_set_mode(unsigned char mode) { | |||
133 | /* This waits for an ATA interrupt using polling. | 133 | /* This waits for an ATA interrupt using polling. |
134 | In ATA_CONTROL, CONTROL_nIEN must be cleared. | 134 | In ATA_CONTROL, CONTROL_nIEN must be cleared. |
135 | */ | 135 | */ |
136 | STATICIRAM ICODE_ATTR int ata_wait_intrq(void) | 136 | static ICODE_ATTR int ata_wait_intrq(void) |
137 | { | 137 | { |
138 | long timeout = current_tick + HZ*10; | 138 | long timeout = current_tick + HZ*10; |
139 | 139 | ||