WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>, "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix X86_64 Xorg Xfree86 issues
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Sun, 7 Aug 2005 11:43:53 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, David_Wolinsky@xxxxxxxx
Delivery-date: Sun, 07 Aug 2005 03:42:23 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWbAjsF4QlRHaMZTt6bqez2j/7iLg==
Thread-topic: [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

<Prev in Thread] Current Thread [Next in Thread>