1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 Dave Chapman
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 /* Define how IRAM is used on the various targets. Note that this
21 file is included by both .c and .S files so must not contain any C
25 #ifndef _LIBMAD_IRAM_H
26 #define _LIBMAD_IRAM_H
30 /* Code performs slower in IRAM on PP502x and there is no space in
31 mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for
33 #if defined(CPU_PP502x) || (CONFIG_CPU == PP5002 && defined(MPEGPLAYER)) || \
35 #define ICODE_SECTION_MPA_ARM .text
36 #define ICODE_ATTR_MPA_SYNTH
38 #define ICODE_SECTION_MPA_ARM .icode
39 #define ICODE_ATTR_MPA_SYNTH ICODE_ATTR
42 #if CONFIG_CPU == S3C2440
43 #define IBSS_SECTION_MPA_ARM .bss
45 #define IBSS_SECTION_MPA_ARM .ibss
48 #ifndef ICONST_ATTR_MPA_HUFFMAN
49 #define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR
52 #endif /* MAD_IRAM_H */