|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix direct_remap_area_pages() to handle pagetables
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 67a13c0ac87d7878444a5ace1844f4bfb4769295
# Parent 082a537ff4dec66574788126b3b047ef76e59803
Fix direct_remap_area_pages() to handle pagetables
above 4GB.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 082a537ff4de -r 67a13c0ac87d
linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c Thu Aug 18 17:04:48 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c Thu Aug 18 17:46:26 2005
@@ -300,17 +300,17 @@
static int direct_remap_area_pte_fn(pte_t *pte,
- struct page *pte_page,
- unsigned long address,
- void *data)
-{
- mmu_update_t **v = (mmu_update_t **)data;
-
- (*v)->ptr = (pfn_to_mfn(page_to_pfn(pte_page)) << PAGE_SHIFT)
- | ((unsigned long)pte & ~PAGE_MASK);
- (*v)++;
-
- return 0;
+ struct page *pte_page,
+ unsigned long address,
+ void *data)
+{
+ mmu_update_t **v = (mmu_update_t **)data;
+
+ (*v)->ptr = ((physaddr_t)pfn_to_mfn(page_to_pfn(pte_page)) <<
+ PAGE_SHIFT) | ((unsigned long)pte & ~PAGE_MASK);
+ (*v)++;
+
+ return 0;
}
int direct_remap_area_pages(struct mm_struct *mm,
@@ -397,6 +397,16 @@
}
return generic_page_range(mm, address, size, f, NULL);
-}
+}
EXPORT_SYMBOL(touch_pte_range);
+
+/*
+ * Local variables:
+ * c-file-style: "linux"
+ * indent-tabs-mode: t
+ * c-indent-level: 8
+ * c-basic-offset: 8
+ * tab-width: 8
+ * End:
+ */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix direct_remap_area_pages() to handle pagetables,
Xen patchbot -unstable <=
|
|
|
|
|