summaryrefslogtreecommitdiff
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-04-06 04:34:57 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-04-06 04:34:57 +0000
commit05099149f193cac0c81b0129c17feb78b1a9681a (patch)
tree3dd5494dd494bcb4490ddcedef99e9f3a895cd3f /apps/voice_thread.c
parentbe698f086de4641a45dffd9289671588c2391a3c (diff)
downloadrockbox-05099149f193cac0c81b0129c17feb78b1a9681a.tar.gz
rockbox-05099149f193cac0c81b0129c17feb78b1a9681a.zip
Enable nocache sections using the linker. PP5022/4 must use SW_CORELOCK now with shared variables in DRAM (it seems swp(b) is at least partially broken on all PP or I'm doing something very wrong here :\). For core-shared data use SHAREDBSS/DATA_ATTR. NOCACHEBSS/DATA_ATTR is available whether or not single core is forced for static peripheral-DMA buffer allocation without use of the UNCACHED_ADDR macro in code and is likely useful on a non-PP target with a data cache (although not actually enabled in config.h and the .lds's in this commit).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16981 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 0da441191f..c59089d672 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -57,10 +57,10 @@ static long voice_stack[0x7c0/sizeof(long)] IBSS_ATTR_VOICE_STACK;
57static const char voice_thread_name[] = "voice"; 57static const char voice_thread_name[] = "voice";
58 58
59/* Voice thread synchronization objects */ 59/* Voice thread synchronization objects */
60static struct event_queue voice_queue NOCACHEBSS_ATTR; 60static struct event_queue voice_queue SHAREDBSS_ATTR;
61static struct mutex voice_mutex NOCACHEBSS_ATTR; 61static struct mutex voice_mutex SHAREDBSS_ATTR;
62static struct event voice_event NOCACHEBSS_ATTR; 62static struct event voice_event SHAREDBSS_ATTR;
63static struct queue_sender_list voice_queue_sender_list NOCACHEBSS_ATTR; 63static struct queue_sender_list voice_queue_sender_list SHAREDBSS_ATTR;
64 64
65/* Buffer for decoded samples */ 65/* Buffer for decoded samples */
66static spx_int16_t voice_output_buf[VOICE_FRAME_SIZE] CACHEALIGN_ATTR; 66static spx_int16_t voice_output_buf[VOICE_FRAME_SIZE] CACHEALIGN_ATTR;
@@ -115,7 +115,7 @@ void mp3_play_data(const unsigned char* start, int size,
115{ 115{
116 /* Shared struct to get data to the thread - once it replies, it has 116 /* Shared struct to get data to the thread - once it replies, it has
117 * safely cached it in its own private data */ 117 * safely cached it in its own private data */
118 static struct voice_info voice_clip NOCACHEBSS_ATTR; 118 static struct voice_info voice_clip SHAREDBSS_ATTR;
119 119
120 if (get_more != NULL && start != NULL && (ssize_t)size > 0) 120 if (get_more != NULL && start != NULL && (ssize_t)size > 0)
121 { 121 {