summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2007-11-16 06:47:08 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2007-11-16 06:47:08 +0000
commit1ca968c7fcdd09e6ea578af1ee6fec1516a9579b (patch)
tree55e8fd16456f08c2ab09ff3b156d9fe290723bc2 /x11-drivers/ati-drivers/files/8.40.4/ati-drivers-2.6.23.patch
parentbumping to latest svn (diff)
downloadje_fro-1ca968c7fcdd09e6ea578af1ee6fec1516a9579b.tar.gz
je_fro-1ca968c7fcdd09e6ea578af1ee6fec1516a9579b.tar.bz2
je_fro-1ca968c7fcdd09e6ea578af1ee6fec1516a9579b.zip
Trying this old one as the new stuff is broken on macbook pro...
svn path=/; revision=112
Diffstat (limited to 'x11-drivers/ati-drivers/files/8.40.4/ati-drivers-2.6.23.patch')
-rw-r--r--x11-drivers/ati-drivers/files/8.40.4/ati-drivers-2.6.23.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/x11-drivers/ati-drivers/files/8.40.4/ati-drivers-2.6.23.patch b/x11-drivers/ati-drivers/files/8.40.4/ati-drivers-2.6.23.patch
new file mode 100644
index 0000000..9713208
--- /dev/null
+++ b/x11-drivers/ati-drivers/files/8.40.4/ati-drivers-2.6.23.patch
@@ -0,0 +1,41 @@
+diff -Naur common/lib/modules/fglrx/build_mod/firegl_public.c common/lib/modules/fglrx/build_mod/firegl_public.c
+--- common/lib/modules/fglrx/build_mod/firegl_public.c 2007-07-29 13:36:37.000000000 +0200
++++ common/lib/modules/fglrx/build_mod/firegl_public.c 2007-07-29 14:24:11.000000000 +0200
+@@ -2409,7 +2409,11 @@
+ #ifdef pte_offset_map
+ pte_p = pte_offset_map(pmd_p, virtual_addr);
+ if (pte_present(*pte_p))
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+ ret = (ptep_clear_flush_dirty(vma, virtual_addr, pte_p) ? 1 : 0);
++#else
++ return 0;
++#endif
+ else
+ __KE_DEBUG("page not exists!\n");
+ pte_unmap(pte_p);
+@@ -3399,9 +3403,11 @@
+ sprintf(buf, "0x%Lx %c%c%c%c%c%c\n",
+ *phys_address,
+ pte_present (pte) ? 'p' : '-',
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ pte_read (pte) ? 'r' : '-',
+- pte_write (pte) ? 'w' : '-',
+ pte_exec (pte) ? 'x' : '-',
++#endif
++ pte_write (pte) ? 'w' : '-',
+ pte_dirty (pte) ? 'd' : '-',
+ pte_young (pte) ? 'a' : '-');
+ }
+@@ -5348,7 +5354,11 @@
+ DBG_TRACE("creating slab object '%s'", slabcache_obj->name);
+
+ if ((slabcache_obj->cache =
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL, NULL)))
++#else
++ kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL)))
++#endif
+ {
+ ret = 1;
+ }
+