* updated kmbox (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / xorg / xf86-video-sis / hotfix-x32.patch
blobd010a5d7ba1c70cf1f4eec9d4093911467be34d0
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xf86-video-sis/hotfix-x32.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Custom memcpy assembly not x32 compatible, ...
16 --- xf86-video-sis-0.12.0/src/sis_memcpy.c.vanilla 2021-11-07 16:42:37.256092451 +0100
17 +++ xf86-video-sis-0.12.0/src/sis_memcpy.c 2021-11-07 16:42:51.500093186 +0100
18 @@ -1149,7 +1149,7 @@
20 #if defined(__i386__) && defined(SiS_canBenchmark)
21 return(SiSVidCopyInitGen(pScreen, MCFunctions_i386, UMemCpy, from));
22 -#elif (defined(__AMD64__) || defined(__amd64__) || defined(__x86_64__)) && defined(SiS_canBenchmark)
23 +#elif (defined(__AMD64__) || defined(__amd64__) || defined(__x86_64__)) && defined(SiS_canBenchmark) && !defined(_ILP32)
24 return(SiSVidCopyInitGen(pScreen, MCFunctions_AMD64, UMemCpy, from));
25 #else /* Other cases: Use libc memcpy() */
26 *UMemCpy = SiS_libc_memcpy;