summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-01-21 16:47:36 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-01-21 16:47:36 +0000
commitd8a6c0665da7d9b6bd7d5aa2840f86b4a931d0f5 (patch)
tree72043a0c3a903092638fd38e1d846508bcdbd56b /firmware
parent33914a7dfc82fd6badaf774619539b92f3b7c255 (diff)
Improve performance by putting more of the code and variables that are called by the DMA0 interrupt into IRAM (3% boost improvement on my test track).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8404 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/pcm_playback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index fe71fa3862..36c6ab6a75 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -59,8 +59,8 @@ static bool pcm_playing;
static bool pcm_paused;
static int pcm_freq = 0x6; /* 44.1 is default */
-static unsigned char *next_start;
-static long next_size;
+static unsigned char *next_start IDATA_ATTR;
+static long next_size IDATA_ATTR;
/* Set up the DMA transfer that kicks in when the audio FIFO gets empty */
static void dma_start(const void *addr, long size)
@@ -193,7 +193,7 @@ void pcm_set_frequency(unsigned int frequency)
}
/* the registered callback function to ask for more mp3 data */
-static void (*callback_for_more)(unsigned char**, long*) = NULL;
+static void (*callback_for_more)(unsigned char**, long*) IDATA_ATTR = NULL;
void pcm_play_data(void (*get_more)(unsigned char** start, long* size))
{