diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-04-06 04:34:57 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-04-06 04:34:57 +0000 |
commit | 05099149f193cac0c81b0129c17feb78b1a9681a (patch) | |
tree | 3dd5494dd494bcb4490ddcedef99e9f3a895cd3f /firmware/target/arm/pcm-pp.c | |
parent | be698f086de4641a45dffd9289671588c2391a3c (diff) | |
download | rockbox-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 'firmware/target/arm/pcm-pp.c')
-rw-r--r-- | firmware/target/arm/pcm-pp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c index 433e6e1e4f..64c6d0cdc8 100644 --- a/firmware/target/arm/pcm-pp.c +++ b/firmware/target/arm/pcm-pp.c | |||
@@ -72,7 +72,7 @@ void fiq_handler(void) | |||
72 | /**************************************************************************** | 72 | /**************************************************************************** |
73 | ** Playback DMA transfer | 73 | ** Playback DMA transfer |
74 | **/ | 74 | **/ |
75 | struct dma_data dma_play_data NOCACHEBSS_ATTR = | 75 | struct dma_data dma_play_data SHAREDBSS_ATTR = |
76 | { | 76 | { |
77 | /* Initialize to a locked, stopped state */ | 77 | /* Initialize to a locked, stopped state */ |
78 | .p = NULL, | 78 | .p = NULL, |
@@ -84,7 +84,7 @@ struct dma_data dma_play_data NOCACHEBSS_ATTR = | |||
84 | .state = 0 | 84 | .state = 0 |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static unsigned long pcm_freq NOCACHEDATA_ATTR = HW_SAMPR_DEFAULT; /* 44.1 is default */ | 87 | static unsigned long pcm_freq SHAREDDATA_ATTR = HW_SAMPR_DEFAULT; /* 44.1 is default */ |
88 | #ifdef HAVE_WM8751 | 88 | #ifdef HAVE_WM8751 |
89 | /* Samplerate control for audio codec */ | 89 | /* Samplerate control for audio codec */ |
90 | static int sr_ctrl = MROBE100_44100HZ; | 90 | static int sr_ctrl = MROBE100_44100HZ; |
@@ -356,7 +356,7 @@ const void * pcm_play_dma_get_peak_buffer(int *count) | |||
356 | **/ | 356 | **/ |
357 | #ifdef HAVE_RECORDING | 357 | #ifdef HAVE_RECORDING |
358 | /* PCM recording interrupt routine lockout */ | 358 | /* PCM recording interrupt routine lockout */ |
359 | static struct dma_data dma_rec_data NOCACHEBSS_ATTR = | 359 | static struct dma_data dma_rec_data SHAREDBSS_ATTR = |
360 | { | 360 | { |
361 | /* Initialize to a locked, stopped state */ | 361 | /* Initialize to a locked, stopped state */ |
362 | .p = NULL, | 362 | .p = NULL, |