diff options
author | Joachim Blaabjerg <styx@gentoo.org> | 2002-12-18 21:15:57 +0000 |
---|---|---|
committer | Joachim Blaabjerg <styx@gentoo.org> | 2002-12-18 21:15:57 +0000 |
commit | c78d3e9e591a8b277989925f627d7b5326839ee3 (patch) | |
tree | 8ea398478384fdd0fd04117bfd370f8f7fbc661a /media-video/nvidia-kernel/files | |
parent | Adding ${FILESDIR}/${NV_PACKAGE}-rmap.diff, so it works with rmap kernels as ... (diff) | |
download | gentoo-2-c78d3e9e591a8b277989925f627d7b5326839ee3.tar.gz gentoo-2-c78d3e9e591a8b277989925f627d7b5326839ee3.tar.bz2 gentoo-2-c78d3e9e591a8b277989925f627d7b5326839ee3.zip |
Committing the actual patch :P
Diffstat (limited to 'media-video/nvidia-kernel/files')
-rw-r--r-- | media-video/nvidia-kernel/files/NVIDIA_kernel-1.0-4191-rmap.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media-video/nvidia-kernel/files/NVIDIA_kernel-1.0-4191-rmap.diff b/media-video/nvidia-kernel/files/NVIDIA_kernel-1.0-4191-rmap.diff new file mode 100644 index 000000000000..e46c8ea309ac --- /dev/null +++ b/media-video/nvidia-kernel/files/NVIDIA_kernel-1.0-4191-rmap.diff @@ -0,0 +1,17 @@ +diff -Naur NVIDIA_kernel-1.0-4191/nv.c NVIDIA_kernel-1.0-4191-patched/nv.c +--- NVIDIA_kernel-1.0-4191/nv.c 2002-12-09 21:27:15.000000000 +0100 ++++ NVIDIA_kernel-1.0-4191-patched/nv.c 2002-12-18 21:49:05.000000000 +0100 +@@ -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 + + if (!pte_present(pte)) |