]> git.pld-linux.org Git - packages/transcode.git/commitdiff
- added cpuid workaround for -fPIC on x86
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 14 Nov 2003 11:21:47 +0000 (11:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    transcode-pic.patch -> 1.2

transcode-pic.patch

index ff8ec00ad51f6f767f07a67dfe41981c3299e1e3..72f034cb92b20c9a7e48a2184917a048ab6bc287 100644 (file)
  
  noinst_HEADERS = yuv2rgb.h video_out_internal.h video_out.h rgb2yuv.h mmx.h mm_accel.h 
  EXTRA_DIST = COPYING AUTHORS README
+--- transcode-0.6.11/libvo/cpu_accel.c.orig    Fri Nov 14 12:03:50 2003
++++ transcode-0.6.11/libvo/cpu_accel.c Fri Nov 14 12:15:40 2003
+@@ -33,9 +33,12 @@
+     uint32_t caps;
+ #define cpuid(op,eax,ebx,ecx,edx)     \
+-    asm ("cpuid"                      \
++    asm ("pushl %%ebx\n"              \
++       "cpuid\n"                      \
++       "movl %%ebx, %%edi\n"          \
++       "popl %%ebx"                   \
+        : "=a" (eax),                  \
+-         "=b" (ebx),                  \
++         "=D" (ebx),                  \
+          "=c" (ecx),                  \
+          "=d" (edx)                   \
+        : "a" (op)                     \
+@@ -50,7 +53,7 @@
+        "pushfl\n\t"
+        "popl %0"
+          : "=a" (eax),
+-         "=b" (ebx)
++         "=c" (ebx)
+        :
+        : "cc");
This page took 0.031897 seconds and 4 git commands to generate.