]> git.sesse.net Git - ffmpeg/commitdiff
Blackfin: use SRAM only when CONFIG_SRAM is set
authorMåns Rullgård <mans@mansr.com>
Sun, 31 Jan 2010 00:20:37 +0000 (00:20 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 31 Jan 2010 00:20:37 +0000 (00:20 +0000)
Originally committed as revision 30472 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/bfin/internal_bfin.S
libswscale/bfin/swscale_bfin.c
libswscale/bfin/yuv2rgb_bfin.c

index fb7bda7e1214d6d695ca3ab73f9c1d0906da957d..98f69ef53fcad1767e289c223da0284ff8ef0d45 100644 (file)
@@ -94,7 +94,7 @@ to do with the memory system.
 */
 
 #define mL3 .text
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 #define mL1 .l1.text
 #else
 #define mL1 mL3
index 2ad81d847db5241cebe02d68d49839f3458c6345..ce2f1720dda42602deefa96ba35cabf41418b66f 100644 (file)
@@ -31,7 +31,7 @@
 #include "libswscale/swscale.h"
 #include "libswscale/swscale_internal.h"
 
-#ifdef __FDPIC__
+#if defined (__FDPIC__) && CONFIG_SRAM
 #define L1CODE __attribute__ ((l1_text))
 #else
 #define L1CODE
index 39e1ec87b57ee88d2dd20a5bbb4b856d5de07670..eaa83eaf3b6cd2d2691f29a29a85043fcb14adfb 100644 (file)
@@ -32,7 +32,7 @@
 #include "libswscale/swscale.h"
 #include "libswscale/swscale_internal.h"
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 #define L1CODE __attribute__ ((l1_text))
 #else
 #define L1CODE