DeadMetaler: sudo leafpad /usr/src/nvidia-340-340.76/nv-pat.c about 35 line change "read_cr4" to "__read_cr4" and "write_cr4" to "__write_cr4" or copy-past: --------------------------------------- static inline void nv_disable_caches(unsigned long *cr4) { unsigned long cr0 = read_cr0(); write_cr0(((cr0 & (0xdfffffff)) | 0x40000000)); wbinvd(); *cr4 = __read_cr4(); if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80); __flush_tlb(); }
static inline void nv_enable_caches(unsigned long cr4) { unsigned long cr0 = read_cr0(); wbinvd(); __flush_tlb(); write_cr0((cr0 & 0x9fffffff)); if (cr4 & 0x80) __write_cr4(cr4); } --------------------------------------- Then: sudo dkms autoinstall -k 4.0.0-040000-generic -m nvidia-340 -v 340.76
DeadMetaler: nvidia- 340-340. 76/nv-pat. c ------- ------- ------- ------- ---- caches( unsigned long *cr4)
sudo leafpad /usr/src/
about 35 line change "read_cr4" to "__read_cr4" and "write_cr4" to "__write_cr4" or copy-past:
-------
static inline void nv_disable_
{
unsigned long cr0 = read_cr0();
write_cr0(((cr0 & (0xdfffffff)) | 0x40000000));
wbinvd();
*cr4 = __read_cr4();
if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80);
__flush_tlb();
}
static inline void nv_enable_ caches( unsigned long cr4) ------- ------- ------- ------- ---- generic -m nvidia-340 -v 340.76
{
unsigned long cr0 = read_cr0();
wbinvd();
__flush_tlb();
write_cr0((cr0 & 0x9fffffff));
if (cr4 & 0x80) __write_cr4(cr4);
}
-------
Then:
sudo dkms autoinstall -k 4.0.0-040000-