[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix X86_64 Xorg Xfree86 issues



Ian/Keir,
this patch fixes X86_64 Xorg Xfree86 issues.
-Xin

Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>

diff -r d3e7327954db
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h
--- a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h Sat Aug
6 15:47:20 2005
+++ b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h Sun Aug
7 10:31:00 2005
@@ -511,11 +511,11 @@
                               unsigned long size,
                               mmu_update_t *v);

-#define io_remap_page_range(vma, vaddr, paddr, size, prot)
\
-               remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size,
prot)
-
-#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)
\
-               remap_pfn_range(vma, vaddr, pfn, size, prot)
+#define io_remap_page_range(vma,from,phys,size,prot) \
+direct_remap_area_pages(vma->vm_mm,from,phys,size,prot,DOMID_IO)
+
+#define io_remap_pfn_range(vma,from,pfn,size,prot) \
+direct_remap_area_pages(vma->vm_mm,from,pfn<<PAGE_SHIFT,size,prot,DOMID
_IO)

 #define MK_IOSPACE_PFN(space, pfn)     (pfn)
 #define GET_IOSPACE(pfn)               0

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.