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

[Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: machine addresss macros



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1190925282 21600
# Node ID 610fcb6013ef9b32e79e0de9534aa0c7df3d1ecf
# Parent  cb1c72a8f273218d1067464f20a31dcb3db93231
[IA64] Kexec: machine addresss macros

Define IA64-specific macros for kexec to find the machine address
of a virtual address etc... This abstraction was hammered out
during the merge of the x86 code.

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
---
 include/asm-ia64/kexec.h |   11 +++++++++++
 1 files changed, 11 insertions(+)

diff -r cb1c72a8f273 -r 610fcb6013ef include/asm-ia64/kexec.h
--- a/include/asm-ia64/kexec.h  Thu Sep 27 14:32:08 2007 -0600
+++ b/include/asm-ia64/kexec.h  Thu Sep 27 14:34:42 2007 -0600
@@ -44,4 +44,15 @@ extern atomic_t kdump_cpu_freezed;
 extern atomic_t kdump_cpu_freezed;
 extern atomic_t kdump_in_progress;
 
+/* Kexec needs to know about the actual physical addresss.
+ * But in xen, on some architectures, a physical address is a
+ * pseudo-physical addresss. */
+#ifdef CONFIG_XEN
+#define KEXEC_ARCH_HAS_PAGE_MACROS
+#define kexec_page_to_pfn(page)  pfn_to_mfn_for_dma(page_to_pfn(page))
+#define kexec_pfn_to_page(pfn)   pfn_to_page(mfn_to_pfn_for_dma(pfn))
+#define kexec_virt_to_phys(addr) phys_to_machine_for_dma(__pa(addr))
+#define kexec_phys_to_virt(addr) phys_to_virt(machine_to_phys_for_dma(addr))
+#endif
+
 #endif /* _ASM_IA64_KEXEC_H */

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


 


Rackspace

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