ia64/xen-unstable

changeset 19101:7b56dbd1b439

x86: use alloc_domheap_page() consistently in dom0 building

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jan 27 11:24:47 2009 +0000 (2009-01-27)
parents 5f03de1c2fe4
children 6e623569455c
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Tue Jan 27 11:24:24 2009 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Tue Jan 27 11:24:47 2009 +0000
     1.3 @@ -781,7 +781,7 @@ int __init construct_dom0(
     1.4              l4tab = l4start + l4_table_offset(va);
     1.5              if ( !l4e_get_intpte(*l4tab) )
     1.6              {
     1.7 -                page = alloc_domheap_pages(d, 0, 0);
     1.8 +                page = alloc_domheap_page(d, 0);
     1.9                  if ( !page )
    1.10                      break;
    1.11                  /* No mapping, PGC_allocated + page-table page. */
    1.12 @@ -808,7 +808,7 @@ int __init construct_dom0(
    1.13                      va += 1UL << L3_PAGETABLE_SHIFT;
    1.14                      continue;
    1.15                  }
    1.16 -                if ( (page = alloc_domheap_pages(d, 0, 0)) == NULL )
    1.17 +                if ( (page = alloc_domheap_page(d, 0)) == NULL )
    1.18                      break;
    1.19                  else
    1.20                  {
    1.21 @@ -836,7 +836,7 @@ int __init construct_dom0(
    1.22                      va += 1UL << L2_PAGETABLE_SHIFT;
    1.23                      continue;
    1.24                  }
    1.25 -                if ( (page = alloc_domheap_pages(d, 0, 0)) == NULL )
    1.26 +                if ( (page = alloc_domheap_page(d, 0)) == NULL )
    1.27                      break;
    1.28                  else
    1.29                  {
    1.30 @@ -851,7 +851,7 @@ int __init construct_dom0(
    1.31              l1tab = page_to_virt(l2e_get_page(*l2tab));
    1.32              l1tab += l1_table_offset(va);
    1.33              BUG_ON(l1e_get_intpte(*l1tab));
    1.34 -            page = alloc_domheap_pages(d, 0, 0);
    1.35 +            page = alloc_domheap_page(d, 0);
    1.36              if ( !page )
    1.37                  break;
    1.38              *l1tab = l1e_from_page(page, L1_PROT|_PAGE_DIRTY);