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 fb7bda7..98f69ef 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 2ad81d8..ce2f172 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 39e1ec8..eaa83ea 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