1
0
Fork 0
forked from len0rd/rockbox

Use ICODE_ATTR instead of __attribute__ ((section(".icode")))

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7820 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-11-12 14:48:52 +00:00
parent ec2ed49b1f
commit 622f9334db
2 changed files with 8 additions and 11 deletions

View file

@ -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)
{

View file

@ -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