Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 405702 Details for
Bug 553194
nvidia-drivers <= 343.36 build fails on 4.x kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix
nvidia-drivers-read-write_cr4.patch (text/plain), 814 bytes, created by
Daniel Santos
on 2015-06-25 01:12:30 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Daniel Santos
Created:
2015-06-25 01:12:30 UTC
Size:
814 bytes
patch
obsolete
>diff -ru orig/kernel/nv-pat.c work/kernel/nv-pat.c >--- orig/kernel/nv-pat.c 2015-06-24 20:01:46.434898721 -0500 >+++ work/kernel/nv-pat.c 2015-06-24 20:00:56.856901342 -0500 >@@ -35,8 +35,13 @@ > unsigned long cr0 = read_cr0(); > write_cr0(((cr0 & (0xdfffffff)) | 0x40000000)); > wbinvd(); >+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) > *cr4 = read_cr4(); > if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80); >+#else >+ *cr4 = __read_cr4(); >+ if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80); >+#endif > __flush_tlb(); > } > >@@ -46,7 +51,11 @@ > wbinvd(); > __flush_tlb(); > write_cr0((cr0 & 0x9fffffff)); >+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) > if (cr4 & 0x80) write_cr4(cr4); >+#else >+ if (cr4 & 0x80) __write_cr4(cr4); >+#endif > } > > static int nv_determine_pat_mode(void)
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 553194
: 405702