]> git.pld-linux.org Git - packages/gavl.git/blob - x32.patch
- x32 fix from debian-x32.org
[packages/gavl.git] / x32.patch
1 --- gavl-1.4.0.orig/gavl/cputest.c
2 +++ gavl-1.4.0/gavl/cputest.c
3 @@ -69,32 +69,8 @@ int gavl_accel_supported()
4       int rval = 0;
5      int eax, ebx, ecx, edx;
6      int max_std_level, max_ext_level, std_caps=0, ext_caps=0;
7 -    long a, c;
8 -
9 -    __asm__ __volatile__ (
10 -                          /* See if CPUID instruction is supported ... */
11 -                          /* ... Get copies of EFLAGS into eax and ecx */
12 -                          "pushf\n\t"
13 -                          "pop %0\n\t"
14 -                          "mov %0, %1\n\t"
15 -
16 -                          /* ... Toggle the ID bit in one copy and store */
17 -                          /*     to the EFLAGS reg */
18 -                          "xor $0x200000, %0\n\t"
19 -                          "push %0\n\t"
20 -                          "popf\n\t"
21 -
22 -                          /* ... Get the (hopefully modified) EFLAGS */
23 -                          "pushf\n\t"
24 -                          "pop %0\n\t"
25 -                          : "=a" (a), "=c" (c)
26 -                          :
27 -                          : "cc"
28 -                          );
29 -
30 -    if (a == c)
31 -        return 0; /* CPUID not supported */
32  
33 +    /* any CPU that can run Debian has CPUID */
34      cpuid(0, max_std_level, ebx, ecx, edx);
35  
36      if(max_std_level >= 1){
This page took 0.060549 seconds and 3 git commands to generate.