summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2007-10-24 06:29:14 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2007-10-24 06:29:14 +0000
commitee0d0fd389ca041d4924dab5df94affc59c5419c (patch)
tree8dcbf1a57b3da01a3bea8e3e32a32f09a975f2c5 /x11-drivers/ati-drivers/files/8.42.3
parentfixing up patch (diff)
downloadje_fro-ee0d0fd389ca041d4924dab5df94affc59c5419c.tar.gz
je_fro-ee0d0fd389ca041d4924dab5df94affc59c5419c.tar.bz2
je_fro-ee0d0fd389ca041d4924dab5df94affc59c5419c.zip
gone crazy and adding etqw...
svn path=/; revision=109
Diffstat (limited to 'x11-drivers/ati-drivers/files/8.42.3')
-rw-r--r--x11-drivers/ati-drivers/files/8.42.3/ati-drivers-2.6.23.patch50
1 files changed, 16 insertions, 34 deletions
diff --git a/x11-drivers/ati-drivers/files/8.42.3/ati-drivers-2.6.23.patch b/x11-drivers/ati-drivers/files/8.42.3/ati-drivers-2.6.23.patch
index b690a18..e02c757 100644
--- a/x11-drivers/ati-drivers/files/8.42.3/ati-drivers-2.6.23.patch
+++ b/x11-drivers/ati-drivers/files/8.42.3/ati-drivers-2.6.23.patch
@@ -1,5 +1,5 @@
---- common/lib/modules/fglrx/build_mod/firegl_public.c.orig 2007-10-23 19:31:26.000000000 +0200
-+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2007-10-23 19:32:07.000000000 +0200
+--- firegl_public.c 2007-10-23 23:32:06.000000000 -0500
++++ firegl_public.c.new 2007-10-23 23:58:31.000000000 -0500
@@ -217,6 +217,56 @@
#define preempt_enable()
#endif
@@ -16,8 +16,8 @@
+ __ret; \
+})
+
-+static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
-+static inline int pte_user(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
++static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
++static inline int pte_user(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
+#ifdef CONFIG_X86_PAE
+/*
+ * Is the pte executable?
@@ -26,7 +26,7 @@
+{
+ return !(pte_val(pte) & _PAGE_NX);
+}
-+
++
+/*
+ * All present user-pages with !NX bit are user-executable:
+ */
@@ -39,34 +39,34 @@
+{
+ return pte_user(pte);
+}
-+#endif /* PAE */
++#endif /* PAE */
+
+#elif defined(__x86_64__)
+static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma,
-+ unsigned long addr, pte_t *ptep)
++ unsigned long addr, pte_t *ptep)
+{
-+ if (!pte_dirty(*ptep))
-+ return 0;
-+ return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte);
++ if (!pte_dirty(*ptep))
++ return 0;
++ return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte);
+}
-+static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; }
-+static inline int pte_exec(pte_t pte) { return !(pte_val(pte) & _PAGE_NX); }
++static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; }
++static inline int pte_exec(pte_t pte) { return !(pte_val(pte) & _PAGE_NX); }
+#endif
+#endif
+
// ============================================================
/* globals */
-@@ -2489,7 +2539,7 @@ void ATI_API_CALL __ke_put_vm_page_table
+@@ -2490,7 +2540,7 @@
#ifndef ptep_clear_flush_dirty
#define ptep_clear_flush_dirty(__vma, __address, __ptep) \
({ \
- int __dirty = ptep_test_and_clear_dirty(__ptep); \
-+ int __dirty = ptep_test_and_clear_dirty(__vma, __address, __ptep); \
++ int __dirty = ptep_test_and_clear_dirty(__vma, __address, __ptep); \
if (__dirty) \
flush_tlb_page(__vma, __address); \
__dirty; \
-@@ -2936,7 +2986,7 @@ int ATI_API_CALL __ke_request_irq(unsign
+@@ -2937,7 +2987,7 @@
{
return request_irq(irq,
(void(*)(int, void *, struct pt_regs *))handler,
@@ -75,25 +75,7 @@
}
void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id)
-@@ -2959,7 +3009,7 @@ int ATI_API_CALL __ke_request_irq(unsign
- irq_handler_func = handler;
- return request_irq(irq,
- ke_irq_handler_wrap,
-- SA_SHIRQ, dev_name, dev_id);
-+ IRQF_SHARED, dev_name, dev_id);
- }
-
- void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id)
-@@ -5436,7 +5486,7 @@ unsigned int ATI_API_CALL KAS_Spinlock_R
- /** \brief Type definition of the structure describing Slab Cache object */
- typedef struct tag_kasSlabCache_t
- {
-- kmem_cache_t* cache; /* OS slab cache object */
-+ struct kmem_cache *cache; /* OS slab cache object */
- spinlock_t lock; /* OS spinlock object protecting the cache */
- unsigned int routine_type; /* Type of routine the cache might be accessed from */
- char name[14]; /* Cache object name (kernel 2.4 restricts its length to 19 chars) */
-@@ -5482,7 +5532,7 @@ unsigned int ATI_API_CALL KAS_SlabCache_
+@@ -5481,7 +5531,7 @@
DBG_TRACE("creating slab object '%s'", slabcache_obj->name);
if ((slabcache_obj->cache =