Re: rmap and nvidia?

Eyal Lebedinsky
2002-12-16T23:09:27Z

"O.Sezer" wrote:
>
> Is this patch correct in any way?
> (Ripped out of the 2.5 patch and modified some).

The equivalent minimal patch for nv.c in 2.4 will then be:

--- modules/nvidia/NVIDIA_kernel/nv.c.orig Tue Dec 10 07:27:15 2002
+++ modules/nvidia/NVIDIA_kernel/nv.c Tue Dec 17 10:07:37 2002
@@ -2247,7 +2247,13 @@
pte_kunmap(pte__);
#else
pte__ = NULL;
+#ifdef pte_offset
pte = *pte_offset(pg_mid_dir, address);
+#else /* rmap-vm */
+ pte__ = pte_offset_map(pg_mid_dir, address);
+ pte = *pte__;
+ pte_unmap(pte__);
+#endif
#endif

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>