packages: xorg-driver-video-fglrx/xorg-driver-video-fglrx.spec, xorg-driver...

pluto pluto at pld-linux.org
Sat Jan 21 22:26:52 CET 2012


Author: pluto                        Date: Sat Jan 21 21:26:52 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- always use kernel_fpu_begin() from asm/x86/include/i387.h instead of handmade impl.
  this fixes build on grsec kernel which modifies thread_info struct.

---- Files affected:
packages/xorg-driver-video-fglrx:
   xorg-driver-video-fglrx.spec (1.249 -> 1.250) , xorg-driver-video-fglrx-kernel-fpu.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx.spec
diff -u packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx.spec:1.249 packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx.spec:1.250
--- packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx.spec:1.249	Sat Jan 21 21:52:04 2012
+++ packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx.spec	Sat Jan 21 22:26:47 2012
@@ -51,6 +51,7 @@
 Patch4:		%{pname}-nofinger.patch
 Patch5:		%{pname}-GPL-only.patch
 Patch6:		%{pname}-WARN.patch
+Patch7:		%{pname}-kernel-fpu.patch
 URL:		http://ati.amd.com/support/drivers/linux/linux-radeon.html
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
 BuildRequires:	rpmbuild(macros) >= 1.379
@@ -218,6 +219,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p0
+%patch7 -p0
 
 install -d common{%{_prefix}/{%{_lib},bin,sbin},/etc}
 cp -r %{x11ver}%{arch_sufix}/usr/X11R6/%{_lib}/* common%{_libdir}
@@ -457,6 +459,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.250  2012/01/21 21:26:47  pluto
+- always use kernel_fpu_begin() from asm/x86/include/i387.h instead of handmade impl.
+  this fixes build on grsec kernel which modifies thread_info struct.
+
 Revision 1.249  2012/01/21 20:52:04  pluto
 - avoid macro hell (amd WARN enum vs. kernel WARN logging).
 

================================================================
Index: packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx-kernel-fpu.patch
diff -u /dev/null packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx-kernel-fpu.patch:1.1
--- /dev/null	Sat Jan 21 22:26:52 2012
+++ packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx-kernel-fpu.patch	Sat Jan 21 22:26:47 2012
@@ -0,0 +1,19 @@
+--- common/lib/modules/fglrx/build_mod/firegl_public.c.orig	2012-01-21 21:44:22.000000000 +0100
++++ common/lib/modules/fglrx/build_mod/firegl_public.c	2012-01-21 22:21:45.126304477 +0100
+@@ -5791,16 +5791,7 @@
+  */
+ void ATI_API_CALL KCL_fpu_begin(void)
+ {
+-#ifdef CONFIG_X86_64
+     kernel_fpu_begin();
+-#else
+-    struct thread_info *cur_task = current_thread_info();
+-    preempt_disable();
+-    if (cur_task->status & TS_USEDFPU)
+-        __save_init_fpu(cur_task->task);
+-    else
+-        clts();
+-#endif
+ }
+ 
+ /** \brief End of using FPU
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/xorg-driver-video-fglrx/xorg-driver-video-fglrx.spec?r1=1.249&r2=1.250&f=u



More information about the pld-cvs-commit mailing list