summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/dsp
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-05-13 22:27:18 +0200
committerThomas Martitz <kugel@rockbox.org>2012-05-13 22:27:18 +0200
commitc9d082f05667bb128dd9fd26d6842b5795586089 (patch)
tree5afa6a6cef3a40e95d83e275244ceb07fe39cc7f /lib/rbcodec/dsp
parent5f7d5b854b966a9901e0fbc36dec7234b4ba9220 (diff)
downloadrockbox-c9d082f05667bb128dd9fd26d6842b5795586089.tar.gz
rockbox-c9d082f05667bb128dd9fd26d6842b5795586089.zip
dsp_arm: Fix up some .section directives to fix crash on app targets.
This is needed on app targets as e.g. ".section .icode" leads to the code getting linked to incorrect locations (0x0 in this case). Change-Id: Ic28c5ae6d4f8001d211d685b5ca92d5ffff0c7b2
Diffstat (limited to 'lib/rbcodec/dsp')
-rw-r--r--lib/rbcodec/dsp/dsp_arm.S20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/rbcodec/dsp/dsp_arm.S b/lib/rbcodec/dsp/dsp_arm.S
index cd345920a5..1674d6617a 100644
--- a/lib/rbcodec/dsp/dsp_arm.S
+++ b/lib/rbcodec/dsp/dsp_arm.S
@@ -24,7 +24,7 @@
* void channel_mode_proc_mono(struct dsp_proc_entry *this,
* struct dsp_buffer **buf_p)
*/
- .section .text
+ .section .text, "ax",%progbits
.global channel_mode_proc_mono
.type channel_mode_proc_mono, %function
channel_mode_proc_mono:
@@ -66,7 +66,7 @@ channel_mode_proc_mono:
* void channel_mode_proc_custom(struct dsp_proc_entry *this,
* struct dsp_buffer **buf_p)
*/
- .section .text
+ .section .text, "ax",%progbits
.global channel_mode_proc_custom
.type channel_mode_proc_custom, %function
channel_mode_proc_custom:
@@ -141,7 +141,7 @@ channel_mode_proc_custom:
* void channel_mode_proc_karaoke(struct dsp_proc_entry *this,
* struct dsp_buffer **buf_p)
*/
- .section .text
+ .section .text, "ax",%progbits
.global channel_mode_proc_karaoke
.type channel_mode_proc_karaoke, %function
channel_mode_proc_karaoke:
@@ -186,7 +186,7 @@ channel_mode_proc_karaoke:
* void crossfeed_process(struct dsp_proc_entry *this,
* struct dsp_buffer **buf_p)
*/
- .section .text
+ .section .text, "ax",%progbits
.global crossfeed_process
crossfeed_process:
@ input: r0 = this, r1 = buf_p
@@ -251,7 +251,7 @@ crossfeed_process:
* struct dsp_buffer *src,
* struct dsp_buffer *dst)
*/
- .section .text
+ .section .text, "ax",%progbits
.global lin_resample_resample
lin_resample_resample:
@input: r0 = data, r1 = src, r2 = dst
@@ -358,7 +358,7 @@ lin_resample_resample:
/****************************************************************************
* void pga_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p)
*/
- .section .text
+ .section .text, "ax",%progbits
.global pga_process
.type pga_process, %function
pga_process:
@@ -414,9 +414,9 @@ pga_process:
#define HIGH_PRECISION 0
#if CONFIG_CPU == PP5002
- .section .icode
+ .section .icode,"ax",%progbits
#else
- .text
+ .section .text, "ax",%progbits
#endif
.global filter_process
filter_process:
@@ -476,7 +476,7 @@ filter_process:
* struct dsp_buffer *src,
* struct dsp_buffer *dst)
*/
- .section .icode
+ .section .icode,"ax",%progbits
.global sample_output_mono
.type sample_output_mono, %function
sample_output_mono:
@@ -540,7 +540,7 @@ sample_output_mono:
* struct dsp_buffer *src,
* struct dsp_buffer *dst)
*/
- .section .icode
+ .section .icode,"ax",%progbits
.global sample_output_stereo
.type sample_output_stereo, %function
sample_output_stereo: