Fix up configure and buildzip/wpsbuild.pl a bit
[kugel-rb.git] / apps / codecs / libmad / mad_iram.h
blob92abf6241628a861da311536e701dbb687b35425
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 Dave Chapman
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 /* Define how IRAM is used on the various targets. Note that this
23 file is included by both .c and .S files so must not contain any C
24 code.
27 #ifndef _LIBMAD_IRAM_H
28 #define _LIBMAD_IRAM_H
30 #include "config.h"
32 /* Code performs slower in IRAM on PP502x and there is no space in
33 mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for
34 codecs */
35 #if defined(CPU_PP502x) || (CONFIG_CPU == PP5002 && defined(MPEGPLAYER))
36 #define ICODE_SECTION_MPA_ARM .text
37 #define ICODE_ATTR_MPA_SYNTH
38 #else
39 #define ICODE_SECTION_MPA_ARM .icode
40 #define ICODE_ATTR_MPA_SYNTH ICODE_ATTR
41 #endif
43 #define IBSS_SECTION_MPA_ARM .ibss
45 #ifndef ICONST_ATTR_MPA_HUFFMAN
46 #define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR
47 #endif
49 #endif /* MAD_IRAM_H */