Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 134236 Details for
Bug 196820
x11-drivers/ati-drivers 8.42 - version bump request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ati-drivers-2.6.23-2.patch
ati-drivers-2.6.23-2.patch (text/plain), 2.64 KB, created by
Bernd Steinhauser
on 2007-10-24 15:03:55 UTC
(
hide
)
Description:
ati-drivers-2.6.23-2.patch
Filename:
MIME Type:
Creator:
Bernd Steinhauser
Created:
2007-10-24 15:03:55 UTC
Size:
2.64 KB
patch
obsolete
>diff -Naur common/lib/modules/fglrx/build_mod/firegl_public.c.old common/lib/modules/fglrx/build_mod/firegl_public.c >--- common/lib/modules/fglrx/build_mod/firegl_public.c 2007-10-24 14:10:52.000000000 +0000 >+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2007-10-24 14:14:39.000000000 +0000 >@@ -217,6 +217,56 @@ > #define preempt_enable() > #endif > >+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22) >+#if defined(__i386__) >+#define ptep_test_and_clear_dirty(vma, addr, ptep) ({ \ >+ int __ret = 0; \ >+ if (pte_dirty(*(ptep))) \ >+ __ret = test_and_clear_bit(_PAGE_BIT_DIRTY, \ >+ &(ptep)->pte_low); \ >+ if (__ret) \ >+ pte_update((vma)->vm_mm, addr, ptep); \ >+ __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; } >+#ifdef CONFIG_X86_PAE >+/* >+ * Is the pte executable? >+ */ >+static inline int pte_x(pte_t pte) >+{ >+ return !(pte_val(pte) & _PAGE_NX); >+} >+ >+/* >+ * All present user-pages with !NX bit are user-executable: >+ */ >+static inline int pte_exec(pte_t pte) >+{ >+ return pte_user(pte) && pte_x(pte); >+} >+#else >+static inline int pte_exec(pte_t pte) >+{ >+ return pte_user(pte); >+} >+#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) >+{ >+ 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); } >+#endif >+#endif >+ > // ============================================================ > /* globals */ > >@@ -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); \ > if (__dirty) \ > flush_tlb_page(__vma, __address); \ > __dirty; \ >@@ -2937,7 +2987,7 @@ > { > return request_irq(irq, > (void(*)(int, void *, struct pt_regs *))handler, >- 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)
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 Raw
Actions:
View
Attachments on
bug 196820
:
134191
|
134199
|
134203
|
134204
|
134230
|
134232
|
134235
|
134236
|
134237
|
134467
|
134516
|
134653
|
135344