[zaptel-commits] trunk r1220 - /trunk/zttranscode.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Jul 12 05:58:41 MST 2006


Author: kpfleming
Date: Wed Jul 12 07:58:40 2006
New Revision: 1220

URL: http://svn.digium.com/view/zaptel?rev=1220&view=rev
Log:
and now... use the old mmap API properly (oops)

Modified:
    trunk/zttranscode.c

Modified: trunk/zttranscode.c
URL: http://svn.digium.com/view/zaptel/trunk/zttranscode.c?rev=1220&r1=1219&r2=1220&view=diff
==============================================================================
--- trunk/zttranscode.c (original)
+++ trunk/zttranscode.c Wed Jul 12 07:58:40 2006
@@ -371,9 +371,9 @@
 
 	physical = (unsigned long) virt_to_phys(ztc->tch);
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
-	res = remap_pfn_range(vma, vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED);
+	res = remap_pfn_range(vma, vma->vm_start, physical >> PAGE_SHIFT, sizeof(struct zt_transcode_header), PAGE_SHARED);
 #else
-	res = remap_page_range(vma, vma->vm_start, physical >> PAGE_SHIFT, sizeof(struct zt_transcode_header), PAGE_SHARED);
+	res = remap_page_range(vma, vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED);
 #endif
 	if (res) {
 		if (debug)



More information about the zaptel-commits mailing list