Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 106422 Details for
Bug 161378
x11-drivers/ati-drivers-8.33.6 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 2.6.20 kernel
ati-drivers-2.6.20.patch (text/plain), 2.80 KB, created by
Thomas Meyer
on 2007-01-10 20:57:20 UTC
(
hide
)
Description:
Patch for 2.6.20 kernel
Filename:
MIME Type:
Creator:
Thomas Meyer
Created:
2007-01-10 20:57:20 UTC
Size:
2.80 KB
patch
obsolete
>diff --git a/common/lib/modules/fglrx/build_mod/2.6.x/Makefile b/common/lib/modules/fglrx/build_mod/2.6.x/Makefile >index c7ba037..2c041f9 100644 >--- a/common/lib/modules/fglrx/build_mod/2.6.x/Makefile >+++ b/common/lib/modules/fglrx/build_mod/2.6.x/Makefile >@@ -6,7 +6,7 @@ obj-m += fglrx.o > fglrx-libs += libfglrx_ip.a.GCC$(GCC_VER_MAJ) > fglrx-c-objs += firegl_public.o > fglrx-objs += $(fglrx-c-objs) $(fglrx-libs) >-fglrx-hdrs += firegl_public.h >+fglrx-hdrs += firegl_public.h syscall.h > drm-hdrs += drm.h drmP.h drm_os_linux.h drm_proc.h drm_compat.h > > ifeq ($(PAGE_ATTR_FIX),) >diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.h b/common/lib/modules/fglrx/build_mod/firegl_public.h >index 0c81d09..0c4d3ce 100644 >--- a/common/lib/modules/fglrx/build_mod/firegl_public.h >+++ b/common/lib/modules/fglrx/build_mod/firegl_public.h >@@ -17,6 +17,8 @@ > #ifndef _FIREGL_PUBLIC_H_ > #define _FIREGL_PUBLIC_H_ > >+#include "syscall.h" >+ > #ifdef DEBUG > #include <stdarg.h> > #endif >diff --git a/common/lib/modules/fglrx/build_mod/syscall.h b/common/lib/modules/fglrx/build_mod/syscall.h >new file mode 100644 >index 0000000..d4dd9a7 >--- /dev/null >+++ b/common/lib/modules/fglrx/build_mod/syscall.h >@@ -0,0 +1,62 @@ >+// x86_64 >+//#define __syscall_clobber "r11","rcx","memory" >+//#endif >+ >+#include <linux/err.h> >+ >+/* >+ * user-visible error numbers are in the range -1 - -MAX_ERRNO: see >+ * <asm-i386/errno.h> >+ */ >+#define __syscall_return(type, res) \ >+do { \ >+ if ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO)) { \ >+ errno = -(res); \ >+ res = -1; \ >+ } \ >+ return (type) (res); \ >+} while (0) >+ >+/* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */ >+#define _syscall0(type,name) \ >+type name(void) \ >+{ \ >+long __res; \ >+__asm__ volatile ("int $0x80" \ >+ : "=a" (__res) \ >+ : "0" (__NR_##name)); \ >+__syscall_return(type,__res); \ >+} >+ >+#define _syscall1(type,name,type1,arg1) \ >+type name(type1 arg1) \ >+{ \ >+long __res; \ >+__asm__ volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx" \ >+ : "=a" (__res) \ >+ : "0" (__NR_##name),"ri" ((long)(arg1)) : "memory"); \ >+__syscall_return(type,__res); \ >+} >+ >+#define _syscall2(type,name,type1,arg1,type2,arg2) \ >+type name(type1 arg1,type2 arg2) \ >+{ \ >+long __res; \ >+__asm__ volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx" \ >+ : "=a" (__res) \ >+ : "0" (__NR_##name),"ri" ((long)(arg1)),"c" ((long)(arg2)) \ >+ : "memory"); \ >+__syscall_return(type,__res); \ >+} >+ >+#define _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3) \ >+type name(type1 arg1,type2 arg2,type3 arg3) \ >+{ \ >+long __res; \ >+__asm__ volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx" \ >+ : "=a" (__res) \ >+ : "0" (__NR_##name),"ri" ((long)(arg1)),"c" ((long)(arg2)), \ >+ "d" ((long)(arg3)) : "memory"); \ >+__syscall_return(type,__res); \ >+} >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 161378
:
106420
| 106422 |
106578