[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [mini-os master] x86/arch_mm.h: move p2m_chk_pfn to x86/mm.c
commit f27fa61a0c206bf372753f2020bbe5dc6028864c Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Aug 12 11:32:57 2016 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Fri Aug 12 16:12:39 2016 +0100 x86/arch_mm.h: move p2m_chk_pfn to x86/mm.c Making that function inlined won't buy us much and is causing error in vtpm manager stubdom build. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> --- arch/x86/mm.c | 9 +++++++++ include/x86/arch_mm.h | 11 +++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/arch/x86/mm.c b/arch/x86/mm.c index 8fa3b4c..88a928d 100644 --- a/arch/x86/mm.c +++ b/arch/x86/mm.c @@ -608,6 +608,15 @@ static void clear_bootstrap(void) printk("Unable to unmap NULL page. rc=%d\n", rc); } +void p2m_chk_pfn(unsigned long pfn) +{ + if ( (pfn >> L3_P2M_SHIFT) > 0 ) + { + printk("Error: Too many pfns.\n"); + do_exit(); + } +} + void arch_init_p2m(unsigned long max_pfn) { unsigned long *l2_list = NULL, *l3_list; diff --git a/include/x86/arch_mm.h b/include/x86/arch_mm.h index e5d9c57..690a919 100644 --- a/include/x86/arch_mm.h +++ b/include/x86/arch_mm.h @@ -190,14 +190,9 @@ typedef unsigned long pgentry_t; #define L2_P2M_IDX(pfn) (((pfn) >> L1_P2M_SHIFT) & P2M_MASK) #define L3_P2M_IDX(pfn) (((pfn) >> L2_P2M_SHIFT) & P2M_MASK) #define INVALID_P2M_ENTRY (~0UL) -static inline void p2m_chk_pfn(unsigned long pfn) -{ - if ( (pfn >> L3_P2M_SHIFT) > 0 ) - { - printk("Error: Too many pfns.\n"); - do_exit(); - } -} + +void p2m_chk_pfn(unsigned long pfn); + static inline unsigned long p2m_pages(unsigned long pages) { return (pages + P2M_ENTRIES - 1) >> L1_P2M_SHIFT; -- generated by git-patchbot for /home/xen/git/mini-os.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |