diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-01-21 16:47:36 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-01-21 16:47:36 +0000 |
commit | d8a6c0665da7d9b6bd7d5aa2840f86b4a931d0f5 (patch) | |
tree | 72043a0c3a903092638fd38e1d846508bcdbd56b /firmware | |
parent | 33914a7dfc82fd6badaf774619539b92f3b7c255 (diff) | |
download | rockbox-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.c | 6 |
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; | |||
59 | static bool pcm_paused; | 59 | static bool pcm_paused; |
60 | static int pcm_freq = 0x6; /* 44.1 is default */ | 60 | static int pcm_freq = 0x6; /* 44.1 is default */ |
61 | 61 | ||
62 | static unsigned char *next_start; | 62 | static unsigned char *next_start IDATA_ATTR; |
63 | static long next_size; | 63 | static 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 */ |
66 | static void dma_start(const void *addr, long size) | 66 | static 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 */ |
196 | static void (*callback_for_more)(unsigned char**, long*) = NULL; | 196 | static void (*callback_for_more)(unsigned char**, long*) IDATA_ATTR = NULL; |
197 | 197 | ||
198 | void pcm_play_data(void (*get_more)(unsigned char** start, long* size)) | 198 | void pcm_play_data(void (*get_more)(unsigned char** start, long* size)) |
199 | { | 199 | { |