File: 10_fix_x86_fxsr_magic.patch

package info (click to toggle)
libvisual 0.4.0-17
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,724 kB
  • sloc: ansic: 15,686; sh: 8,761; makefile: 59; sed: 16; cpp: 7
file content (34 lines) | stat: -rw-r--r-- 1,295 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: fix for X86_FXSR_MAGIC. (Closes: #456856, #608784)
Author: Pierre Habouzit <madcoder@debian.org>
Reviewed-by: Steve Langasek <vorlon@debian.org>
Last-Update: 2011-10-26
Index: libvisual-0.4.0/libvisual/lv_cpu.c
===================================================================
--- libvisual-0.4.0.orig/libvisual/lv_cpu.c
+++ libvisual-0.4.0/libvisual/lv_cpu.c
@@ -76,7 +76,7 @@ static int cpuid (unsigned int ax, unsig
 
 /* The sigill handlers */
 #if defined(VISUAL_ARCH_X86) //x86 (linux katmai handler check thing)
-#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC)
+#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE)
 static void sigill_handler_sse( int signal, struct sigcontext sc )
 {
 	/* Both the "xorps %%xmm0,%%xmm0" and "divps %xmm0,%%xmm1"
@@ -109,7 +109,7 @@ static void sigfpe_handler_sse( int sign
 	}
 }
 #endif
-#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE && X86_FXSR_MAGIC */
+#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE */
 
 #if defined(VISUAL_OS_WIN32)
 LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep)
@@ -143,6 +143,7 @@ static void sigill_handler (int sig)
 
 static void check_os_altivec_support( void )
 {
+  return;
 #if defined(VISUAL_OS_DARWIN)
 	int sels[2] = {CTL_HW, HW_VECTORUNIT};
 	int has_vu = 0;