diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-11-12 14:48:52 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-11-12 14:48:52 +0000 |
| commit | 622f9334dbedebade18905d117d5025cbaac5f2e (patch) | |
| tree | 66f5f1fefad88102d1417d36a93b9c38ee53cb69 | |
| parent | ec2ed49b1fa1062989a7a751c5c1af6c96c67b7a (diff) | |
| download | rockbox-622f9334dbedebade18905d117d5025cbaac5f2e.zip rockbox-622f9334dbedebade18905d117d5025cbaac5f2e.tar.gz rockbox-622f9334dbedebade18905d117d5025cbaac5f2e.tar.bz2 rockbox-622f9334dbedebade18905d117d5025cbaac5f2e.tar.xz | |
Use ICODE_ATTR instead of __attribute__ ((section(".icode")))
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7820 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/ata.c | 15 | ||||
| -rw-r--r-- | firmware/kernel.c | 4 |
2 files changed, 8 insertions, 11 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index dac94b0..9cc49c1 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -308,7 +308,7 @@ static int perform_soft_reset(void); static int set_multiple_mode(int sectors); static int set_features(void); -static int wait_for_bsy(void) __attribute__ ((section (".icode"))); +static int wait_for_bsy(void) ICODE_ATTR; static int wait_for_bsy(void) { long timeout = current_tick + HZ*30; @@ -323,7 +323,7 @@ static int wait_for_bsy(void) return 0; /* timeout */ } -static int wait_for_rdy(void) __attribute__ ((section (".icode"))); +static int wait_for_rdy(void) ICODE_ATTR; static int wait_for_rdy(void) { long timeout; @@ -345,7 +345,7 @@ static int wait_for_rdy(void) return 0; /* timeout */ } -static int wait_for_start_of_transfer(void) __attribute__ ((section (".icode"))); +static int wait_for_start_of_transfer(void) ICODE_ATTR; static int wait_for_start_of_transfer(void) { if (!wait_for_bsy()) @@ -353,7 +353,7 @@ static int wait_for_start_of_transfer(void) return (ATA_ALT_STATUS & (STATUS_BSY|STATUS_DRQ)) == STATUS_DRQ; } -static int wait_for_end_of_transfer(void) __attribute__ ((section (".icode"))); +static int wait_for_end_of_transfer(void) ICODE_ATTR; static int wait_for_end_of_transfer(void) { if (!wait_for_bsy()) @@ -367,9 +367,7 @@ static int wait_for_end_of_transfer(void) * controller & cpu internal memory. */ /* the tight loop of ata_read_sectors(), to avoid the whole in IRAM */ -static void copy_read_sectors(unsigned char* buf, - int wordcount) - __attribute__ ((section (".icode"))); +static void copy_read_sectors(unsigned char* buf, int wordcount) ICODE_ATTR; static void copy_read_sectors(unsigned char* buf, int wordcount) { #ifdef PREFER_C_READING @@ -679,8 +677,7 @@ int ata_read_sectors(IF_MV2(int drive,) /* the tight loop of ata_write_sectors(), to avoid the whole in IRAM */ static void copy_write_sectors(const unsigned char* buf, - int wordcount) - __attribute__ ((section (".icode"))); + int wordcount) ICODE_ATTR; static void copy_write_sectors(const unsigned char* buf, int wordcount) { diff --git a/firmware/kernel.c b/firmware/kernel.c index 239394a..6623ca9 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c @@ -35,8 +35,8 @@ static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); static struct event_queue *all_queues[32]; static int num_queues; -void sleep(int ticks) __attribute__ ((section(".icode"))); -void queue_wait(struct event_queue *q, struct event *ev) __attribute__ ((section(".icode"))); +void sleep(int ticks) ICODE_ATTR; +void queue_wait(struct event_queue *q, struct event *ev) ICODE_ATTR; /**************************************************************************** * Standard kernel stuff |