lkml.org 
[lkml]   [2002]   [Dec]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateTue, 17 Dec 2002 10:17:16 +1100
FromEyal Lebedinsky <>
SubjectRe: rmap and nvidia?
"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/>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:31    [from the cache]
©2003-2008