comparison src/video/SDL_yuv_mmx.c @ 1413:40edc79b0926

FIXME: This code needs to be rewritten to reference the static data using relocatable addresses (e.g. http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml or http://nasm.sourceforge.net/doc/html/nasmdoc8.html#section-8.2) This code currently breaks on systems with readonly text segments (hardened Linux / Intel Mac)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 22:12:55 +0000
parents 0c6941483cc6
children 782fd950bd46 c121d94672cb f420bba13676
comparison
equal deleted inserted replaced
1412:a8181c4040b8 1413:40edc79b0926
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #if 0 /* FIXME: This code needs to be rewritten to reference the static data using relocatable addresses (e.g. http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml or http://nasm.sourceforge.net/doc/html/nasmdoc8.html#section-8.2) This code currently breaks on systems with readonly text segments (hardened Linux / Intel Mac) */
24 #if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES 25 #if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
25 26
26 #include "SDL_stdinc.h" 27 #include "SDL_stdinc.h"
27 28
28 #define ASM_ARRAY(x) x[] __asm__("_" #x) __attribute__((used)) 29 #define ASM_ARRAY(x) x[] __asm__("_" #x) __attribute__((used))
404 :"m" (cr), "r"(cb),"r"(lum), 405 :"m" (cr), "r"(cb),"r"(lum),
405 "r"(row1),"r"(cols),"r"(row2),"m"(x),"m"(y),"m"(mod)); 406 "r"(row1),"r"(cols),"r"(row2),"m"(x),"m"(y),"m"(mod));
406 } 407 }
407 408
408 #endif /* GCC i386 inline assembly */ 409 #endif /* GCC i386 inline assembly */
410 #endif /* 0 */