summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-10-27 02:09:35 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-10-27 02:09:35 +0000
commite52d9610b50caceb0b0768b0a55894b03ed1367c (patch)
treec035f3d32a364c703d283b7a9e0b5b5a079edf20
parenta992cd11e5c410a3156b407da65a3b7dd4f63214 (diff)
downloadrockbox-e52d9610b50caceb0b0768b0a55894b03ed1367c.tar.gz
rockbox-e52d9610b50caceb0b0768b0a55894b03ed1367c.tar.bz2
rockbox-e52d9610b50caceb0b0768b0a55894b03ed1367c.zip
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
-rw-r--r--apps/debug_menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index d71874d3c5..ce25410287 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -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);