|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [PATCH 21/28] ia64/xen: define xen related address conv
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
include/asm-ia64/page.h | 11 +++++++++++
include/asm-ia64/xen/page.h | 19 +++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 include/asm-ia64/xen/page.h
diff --git a/include/asm-ia64/page.h b/include/asm-ia64/page.h
index 4999a6c..effd2af 100644
--- a/include/asm-ia64/page.h
+++ b/include/asm-ia64/page.h
@@ -227,4 +227,15 @@ get_order (unsigned long size)
(((current->personality &
READ_IMPLIES_EXEC) != 0) \
? VM_EXEC : 0))
+#ifndef __ASSEMBLY__
+
+#include <linux/kernel.h>
+
+#ifdef CONFIG_XEN
+
+#include <asm/xen/page.h>
+
+#endif /* CONFIG_XEN */
+#endif /* __ASSEMBLY__ */
+
#endif /* _ASM_IA64_PAGE_H */
diff --git a/include/asm-ia64/xen/page.h b/include/asm-ia64/xen/page.h
new file mode 100644
index 0000000..9ab8148
--- /dev/null
+++ b/include/asm-ia64/xen/page.h
@@ -0,0 +1,19 @@
+#ifndef _ASM_IA64_MADDR_H
+#define _ASM_IA64_MADDR_H
+
+#include <linux/kernel.h>
+#include <asm/xen/hypervisor.h>
+#include <asm/xen/hypercall.h>
+#include <xen/features.h>
+#include <xen/interface/xen.h>
+
+#define mfn_to_pfn(mfn) (mfn)
+#define pfn_to_mfn(pfn) (pfn)
+
+#define mfn_to_virt(mfn) (__va((mfn) << PAGE_SHIFT))
+#define virt_to_mfn(virt) (__pa(virt) >> PAGE_SHIFT)
+#define virt_to_machine(virt) __pa(virt) /* for tpmfront.c */
+
+#define set_phys_to_machine(pfn, mfn) do { } while (0)
+
+#endif /* _ASM_IA64_MADDR_H */
--
1.5.3
--
yamahata
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-ia64-devel] [PATCH 11/28] ia64: introduce basic facilities for binary patching., (continued)
[Xen-ia64-devel] [PATCH 16/28] ia64/xen: basic helper routines for xen/ia64., yamahata
[Xen-ia64-devel] [PATCH 21/28] ia64/xen: define xen related address conversion helper functions for domU,
yamahata <=
[Xen-ia64-devel] [PATCH 18/28] ia64/xen: iosapic paravirtualization, yamahata
[Xen-ia64-devel] [PATCH 22/28] ia64/xen: mca paravirtualization, yamahata
[Xen-ia64-devel] [PATCH 20/28] ia64/xen: domU xen machine vector without dma api., yamahata
[Xen-ia64-devel] [PATCH 10/28] RFC: ia64/xen: introduce xen paravirtualized intrinsic operations for privileged instruction., yamahata
[Xen-ia64-devel] [PATCH 17/28] ia64/xen: domU initialization code., yamahata
[Xen-ia64-devel] [PATCH 26/28] ia64/xen: fsys paravirtualization., yamahata
[Xen-ia64-devel] [PATCH 25/28] ia64/xen: gate page paravirtualization, yamahata
[Xen-ia64-devel] [PATCH 27/28] ia64/xen: update Kconfig to allow xen domU Linux, yamahata
[Xen-ia64-devel] [PATCH 23/28] ia64/xen: sal paravirtualization., yamahata
[Xen-ia64-devel] [PATCH 19/28] ia64/xen: xen domU irq chip introducing some helper functions, xen_send_ipi., yamahata
|
|
|
|
|