ia64/xen-unstable

changeset 19126:78bea2f2b0e5

[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@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Fri Jan 30 11:11:39 2009 +0900 (2009-01-30)
parents 4773f40d14f2
children 4edb72e1d0fe
files xen/arch/ia64/xen/xenmem.c
line diff
     1.1 --- a/xen/arch/ia64/xen/xenmem.c	Fri Jan 30 11:09:27 2009 +0900
     1.2 +++ b/xen/arch/ia64/xen/xenmem.c	Fri Jan 30 11:11:39 2009 +0900
     1.3 @@ -49,6 +49,7 @@ paging_init (void)
     1.4  {
     1.5  	unsigned int mpt_order;
     1.6  	unsigned long mpt_table_size;
     1.7 +	struct page_info *page;
     1.8  	unsigned long i;
     1.9  
    1.10  	if (!opt_contig_mem) {
    1.11 @@ -64,9 +65,11 @@ paging_init (void)
    1.12  	mpt_table_size = max_page * sizeof(unsigned long);
    1.13  	mpt_order = get_order(mpt_table_size);
    1.14  	ASSERT(mpt_order <= MAX_ORDER);
    1.15 -	if ((mpt_table = alloc_xenheap_pages(mpt_order, 0)) == NULL)
    1.16 +	page = alloc_domheap_pages(NULL, mpt_order, 0);
    1.17 +	if (page == NULL)
    1.18  		panic("Not enough memory to bootstrap Xen.\n");
    1.19  
    1.20 +	mpt_table = page_to_virt(page);
    1.21  	printk("machine to physical table: 0x%lx mpt_table_size 0x%lx\n"
    1.22  	       "mpt_order %u max_page 0x%lx\n",
    1.23  	       (u64)mpt_table, mpt_table_size, mpt_order, max_page);