]> git.pld-linux.org Git - packages/xorg-driver-video-sis.git/blob - xorg-driver-video-sis-x32.patch
rebuil with xorg-xserver-server 21.1.0
[packages/xorg-driver-video-sis.git] / xorg-driver-video-sis-x32.patch
1 --- xf86-video-sis-0.10.8/src/sis_memcpy.c.orig 2015-08-30 01:34:25.000000000 +0200
2 +++ xf86-video-sis-0.10.8/src/sis_memcpy.c      2015-09-06 12:40:43.927962132 +0200
3 @@ -392,7 +392,8 @@
4  #undef SiS_haveProc
5  #undef SiS_haveBuiltInMC
6  
7 -#if defined(__i386__) /* ***************************************** i386 */
8 +#define IS_X86_64 (defined(__AMD64__) || defined(__amd64__) || defined(__x86_64__))
9 +#if defined(__i386__) || (IS_X86_64 && defined(_ILP32)) /* ***************************************** i386 or x32 */
10  
11  #define SiS_checkosforsse      /* Does this cpu support sse and do we need to check os? */
12  #define SiS_canBenchmark       /* Can we perform a benchmark? */
13 @@ -475,10 +476,17 @@
14      unsigned int eax;
15  
16      __asm__ volatile (
17 +#if IS_X86_64
18 +               " pushq %%rbx\n"
19 +               " cpuid\n"
20 +               " rdtsc\n"
21 +               " popq %%rbx\n"
22 +#else
23                 " pushl %%ebx\n"
24                 " cpuid\n"
25                 " rdtsc\n"
26                 " popl %%ebx\n"
27 +#endif
28                 : "=a" (eax)
29                 : "0" (0)
30                 : "ecx", "edx", "cc");
31 @@ -486,7 +494,7 @@
32      return(eax);
33  }
34  
35 -#elif defined(__AMD64__) || defined(__amd64__) || defined(__x86_64__) /***************** AMD64 */
36 +#elif IS_X86_64 /***************** AMD64 */
37  
38  #define SiS_checkosforsse      /* Does this cpu support sse and do we need to check os? */
39  #define SiS_canBenchmark       /* Can we perform a benchmark? */
40 @@ -1016,7 +1024,11 @@
41  
42  #elif defined(__AMD64__) || defined(__amd64__) || defined(__x86_64__) /* AMD64 specific ***** */
43  
44 +#  if defined(_ILP32)
45 +PREFETCH_FUNC(SiS_sse,SSE,SSE,,FENCE,small_memcpy_i386)
46 +#  else
47  PREFETCH_FUNC(SiS_sse,SSE64,SSE,,FENCE,small_memcpy_amd64)
48 +#  endif
49  
50  static SISMCFuncData MCFunctions_AMD64[] = {
51      {SiS_libc_memcpy,   "libc",      SIS_CPUFL_LIBC, 2,  2, FALSE},
This page took 0.070403 seconds and 3 git commands to generate.