aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bfin/config_bfin.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-31 00:20:30 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-31 00:20:30 +0000
commitd132d50fb8bfd261291055adc9f69cad3d8e640c (patch)
tree00f44c63f801034ca6b5fbaa4bda831d85d122f1 /libavcodec/bfin/config_bfin.h
parent6b35d421b9f2a1701fe4d9676be29574f483eef8 (diff)
downloadffmpeg-d132d50fb8bfd261291055adc9f69cad3d8e640c.tar.gz
Blackfin: use SRAM only when CONFIG_SRAM is set
Originally committed as revision 21565 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bfin/config_bfin.h')
-rw-r--r--libavcodec/bfin/config_bfin.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/bfin/config_bfin.h b/libavcodec/bfin/config_bfin.h
index 322919275a..f3a2c6ebc6 100644
--- a/libavcodec/bfin/config_bfin.h
+++ b/libavcodec/bfin/config_bfin.h
@@ -31,11 +31,13 @@ DEFUN(put_pixels_clamped,mL1,
#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