summaryrefslogtreecommitdiff
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 @@
24 * void channel_mode_proc_mono(struct dsp_proc_entry *this, 24 * void channel_mode_proc_mono(struct dsp_proc_entry *this,
25 * struct dsp_buffer **buf_p) 25 * struct dsp_buffer **buf_p)
26 */ 26 */
27 .section .text 27 .section .text, "ax",%progbits
28 .global channel_mode_proc_mono 28 .global channel_mode_proc_mono
29 .type channel_mode_proc_mono, %function 29 .type channel_mode_proc_mono, %function
30channel_mode_proc_mono: 30channel_mode_proc_mono:
@@ -66,7 +66,7 @@ channel_mode_proc_mono:
66 * void channel_mode_proc_custom(struct dsp_proc_entry *this, 66 * void channel_mode_proc_custom(struct dsp_proc_entry *this,
67 * struct dsp_buffer **buf_p) 67 * struct dsp_buffer **buf_p)
68 */ 68 */
69 .section .text 69 .section .text, "ax",%progbits
70 .global channel_mode_proc_custom 70 .global channel_mode_proc_custom
71 .type channel_mode_proc_custom, %function 71 .type channel_mode_proc_custom, %function
72channel_mode_proc_custom: 72channel_mode_proc_custom:
@@ -141,7 +141,7 @@ channel_mode_proc_custom:
141 * void channel_mode_proc_karaoke(struct dsp_proc_entry *this, 141 * void channel_mode_proc_karaoke(struct dsp_proc_entry *this,
142 * struct dsp_buffer **buf_p) 142 * struct dsp_buffer **buf_p)
143 */ 143 */
144 .section .text 144 .section .text, "ax",%progbits
145 .global channel_mode_proc_karaoke 145 .global channel_mode_proc_karaoke
146 .type channel_mode_proc_karaoke, %function 146 .type channel_mode_proc_karaoke, %function
147channel_mode_proc_karaoke: 147channel_mode_proc_karaoke:
@@ -186,7 +186,7 @@ channel_mode_proc_karaoke:
186 * void crossfeed_process(struct dsp_proc_entry *this, 186 * void crossfeed_process(struct dsp_proc_entry *this,
187 * struct dsp_buffer **buf_p) 187 * struct dsp_buffer **buf_p)
188 */ 188 */
189 .section .text 189 .section .text, "ax",%progbits
190 .global crossfeed_process 190 .global crossfeed_process
191crossfeed_process: 191crossfeed_process:
192 @ input: r0 = this, r1 = buf_p 192 @ input: r0 = this, r1 = buf_p
@@ -251,7 +251,7 @@ crossfeed_process:
251 * struct dsp_buffer *src, 251 * struct dsp_buffer *src,
252 * struct dsp_buffer *dst) 252 * struct dsp_buffer *dst)
253 */ 253 */
254 .section .text 254 .section .text, "ax",%progbits
255 .global lin_resample_resample 255 .global lin_resample_resample
256lin_resample_resample: 256lin_resample_resample:
257 @input: r0 = data, r1 = src, r2 = dst 257 @input: r0 = data, r1 = src, r2 = dst
@@ -358,7 +358,7 @@ lin_resample_resample:
358/**************************************************************************** 358/****************************************************************************
359 * void pga_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p) 359 * void pga_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p)
360 */ 360 */
361 .section .text 361 .section .text, "ax",%progbits
362 .global pga_process 362 .global pga_process
363 .type pga_process, %function 363 .type pga_process, %function
364pga_process: 364pga_process:
@@ -414,9 +414,9 @@ pga_process:
414#define HIGH_PRECISION 0 414#define HIGH_PRECISION 0
415 415
416#if CONFIG_CPU == PP5002 416#if CONFIG_CPU == PP5002
417 .section .icode 417 .section .icode,"ax",%progbits
418#else 418#else
419 .text 419 .section .text, "ax",%progbits
420#endif 420#endif
421 .global filter_process 421 .global filter_process
422filter_process: 422filter_process:
@@ -476,7 +476,7 @@ filter_process:
476 * struct dsp_buffer *src, 476 * struct dsp_buffer *src,
477 * struct dsp_buffer *dst) 477 * struct dsp_buffer *dst)
478 */ 478 */
479 .section .icode 479 .section .icode,"ax",%progbits
480 .global sample_output_mono 480 .global sample_output_mono
481 .type sample_output_mono, %function 481 .type sample_output_mono, %function
482sample_output_mono: 482sample_output_mono:
@@ -540,7 +540,7 @@ sample_output_mono:
540 * struct dsp_buffer *src, 540 * struct dsp_buffer *src,
541 * struct dsp_buffer *dst) 541 * struct dsp_buffer *dst)
542 */ 542 */
543 .section .icode 543 .section .icode,"ax",%progbits
544 .global sample_output_stereo 544 .global sample_output_stereo
545 .type sample_output_stereo, %function 545 .type sample_output_stereo, %function
546sample_output_stereo: 546sample_output_stereo: