[zaptel-commits] mogorman: trunk r1258 - /trunk/zttranscode.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Fri Aug 4 13:30:16 MST 2006


Author: mogorman
Date: Fri Aug  4 15:30:15 2006
New Revision: 1258

URL: http://svn.digium.com/view/zaptel?rev=1258&view=rev
Log:
add support for broader range of kernels.
patch provided by bug 7579 thanks corydon

Modified:
    trunk/zttranscode.c

Modified: trunk/zttranscode.c
URL: http://svn.digium.com/view/zaptel/trunk/zttranscode.c?rev=1258&r1=1257&r2=1258&view=diff
==============================================================================
--- trunk/zttranscode.c (original)
+++ trunk/zttranscode.c Fri Aug  4 15:30:15 2006
@@ -375,7 +375,11 @@
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
 	res = remap_pfn_range(vma, vma->vm_start, physical >> PAGE_SHIFT, sizeof(struct zt_transcode_header), PAGE_SHARED);
 #else
+  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+	res = remap_page_range(vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED);
+  #else
 	res = remap_page_range(vma, vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED);
+  #endif
 #endif
 	if (res) {
 		if (debug)



More information about the zaptel-commits mailing list