1
0
Fork 0
forked from len0rd/rockbox

Accept FS#6235. We should be using the *_ATTR defines instead of __attribute__

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11355 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2006-10-27 02:09:35 +00:00
parent a992cd11e5
commit e52d9610b5

View file

@ -367,9 +367,9 @@ bool dbg_audio_thread(void)
#if CONFIG_CPU == TCC730
static unsigned flash_word_temp __attribute__ ((section (".idata")));
static unsigned flash_word_temp IDATA_ATTR;
static void flash_write_word(unsigned addr, unsigned value) __attribute__ ((section(".icode")));
static void flash_write_word(unsigned addr, unsigned value) ICODE_ATTR;
static void flash_write_word(unsigned addr, unsigned value) {
flash_word_temp = value;
@ -377,7 +377,7 @@ static void flash_write_word(unsigned addr, unsigned value) {
ddma_transfer(1, 1, &flash_word_temp, extAddr, 2);
}
static unsigned flash_read_word(unsigned addr) __attribute__ ((section(".icode")));
static unsigned flash_read_word(unsigned addr) ICODE_ATTR;
static unsigned flash_read_word(unsigned addr) {
long extAddr = (long)addr << 1;
ddma_transfer(1, 1, &flash_word_temp, extAddr, 2);