[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] use domheap for mpt_table.
# HG changeset patch # User Isaku Yamahata <yamahata@xxxxxxxxxxxxx> # Date 1233281499 -32400 # Node ID 78bea2f2b0e53e0ebd750b97ccfcdd4ea97f04fe # Parent 4773f40d14f2d75a850fc12e06d2642c09567ddd [IA64] use domheap for mpt_table. Now there is no need to allocate pages for mpt_table from xenheap. So allocate it from domheap. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- xen/arch/ia64/xen/xenmem.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -r 4773f40d14f2 -r 78bea2f2b0e5 xen/arch/ia64/xen/xenmem.c --- a/xen/arch/ia64/xen/xenmem.c Fri Jan 30 11:09:27 2009 +0900 +++ b/xen/arch/ia64/xen/xenmem.c Fri Jan 30 11:11:39 2009 +0900 @@ -49,6 +49,7 @@ paging_init (void) { unsigned int mpt_order; unsigned long mpt_table_size; + struct page_info *page; unsigned long i; if (!opt_contig_mem) { @@ -64,9 +65,11 @@ paging_init (void) mpt_table_size = max_page * sizeof(unsigned long); mpt_order = get_order(mpt_table_size); ASSERT(mpt_order <= MAX_ORDER); - if ((mpt_table = alloc_xenheap_pages(mpt_order, 0)) == NULL) + page = alloc_domheap_pages(NULL, mpt_order, 0); + if (page == NULL) panic("Not enough memory to bootstrap Xen.\n"); + mpt_table = page_to_virt(page); printk("machine to physical table: 0x%lx mpt_table_size 0x%lx\n" "mpt_order %u max_page 0x%lx\n", (u64)mpt_table, mpt_table_size, mpt_order, max_page); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |