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)
downloadrockbox-d8a6c0665da7d9b6bd7d5aa2840f86b4a931d0f5.tar.gz
rockbox-d8a6c0665da7d9b6bd7d5aa2840f86b4a931d0f5.zip
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;
59static bool pcm_paused; 59static bool pcm_paused;
60static int pcm_freq = 0x6; /* 44.1 is default */ 60static int pcm_freq = 0x6; /* 44.1 is default */
61 61
62static unsigned char *next_start; 62static unsigned char *next_start IDATA_ATTR;
63static long next_size; 63static long next_size IDATA_ATTR;
64 64
65/* Set up the DMA transfer that kicks in when the audio FIFO gets empty */ 65/* Set up the DMA transfer that kicks in when the audio FIFO gets empty */
66static void dma_start(const void *addr, long size) 66static void dma_start(const void *addr, long size)
@@ -193,7 +193,7 @@ void pcm_set_frequency(unsigned int frequency)
193} 193}
194 194
195/* the registered callback function to ask for more mp3 data */ 195/* the registered callback function to ask for more mp3 data */
196static void (*callback_for_more)(unsigned char**, long*) = NULL; 196static void (*callback_for_more)(unsigned char**, long*) IDATA_ATTR = NULL;
197 197
198void pcm_play_data(void (*get_more)(unsigned char** start, long* size)) 198void pcm_play_data(void (*get_more)(unsigned char** start, long* size))
199{ 199{