[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Define mfn_to_local_pfn()
# HG changeset patch # User awilliam@xxxxxxxxxxx # Node ID 912588576817fddae490a9bea71c58d2f8ea9802 # Parent 942ecf21dc066cb6a591c3db86863374e34f4c0c [IA64] Define mfn_to_local_pfn() Signed-off-by: Alex Williamson <alex.williamson@xxxxxx> --- linux-2.6-xen-sparse/include/asm-ia64/page.h | 10 ++++++++++ 1 files changed, 10 insertions(+) diff -r 942ecf21dc06 -r 912588576817 linux-2.6-xen-sparse/include/asm-ia64/page.h --- a/linux-2.6-xen-sparse/include/asm-ia64/page.h Tue Jun 13 09:35:43 2006 -0600 +++ b/linux-2.6-xen-sparse/include/asm-ia64/page.h Tue Jun 13 11:41:05 2006 -0600 @@ -325,6 +325,16 @@ machine_to_phys_for_dma(unsigned long ma #define virt_to_mfn(virt) (__pa(virt) >> PAGE_SHIFT) #define virt_to_machine(virt) __pa(virt) // for tpmfront.c +static inline unsigned long +mfn_to_local_pfn(unsigned long mfn) +{ + extern unsigned long max_mapnr; + unsigned long pfn = mfn_to_pfn(mfn); + if (!pfn_valid(pfn)) + return INVALID_P2M_ENTRY; + return pfn; +} + #endif /* CONFIG_XEN_IA64_DOM0_VP */ #endif /* CONFIG_XEN */ #endif /* __ASSEMBLY__ */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |