#ifndef AVCODEC_BFIN_CONFIG_BFIN_H
#define AVCODEC_BFIN_CONFIG_BFIN_H
+#include "config.h"
+
#ifndef DEFUN
#define mL3 .text
#ifndef mL1
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
#define mL1 .l1.text
#else
#define mL1 mL3
#ifndef AVCODEC_BFIN_DSPUTIL_BFIN_H
#define AVCODEC_BFIN_DSPUTIL_BFIN_H
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
#define attribute_l1_text __attribute__ ((l1_text))
#define attribute_l1_data_b __attribute__((l1_data_B))
#else
*/
+#include "config.h"
#include "config_bfin.h"
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.B,"aw",@progbits
#else
.data
dct_coeff:
.short 0x5a82, 0x2d41, 0x187e, 0x3b21, 0x0c7c, 0x3ec5, 0x238e, 0x3537;
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.A,"aw",@progbits
#endif
.align 4
*/
+#include "config.h"
#include "config_bfin.h"
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.B,"aw",@progbits
#else
.data
.short 0x18F9; //cos(7pi/16)
.short 0x7D8A; //cos(pi/16)
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.A,"aw",@progbits
#endif
*/
+#include "config.h"
#include "config_bfin.h"
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.B,"aw",@progbits
#else
.data
.short 0x18F9; //cos(7pi/16)
.short 0x7D8A; //cos(pi/16)
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.A
#endif